From 91360c20923c8ce30829f19bcd192bb78a4c3918 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 01:15:28 -0300 Subject: build: cloud9 from the sibling checkout by path, until its client is published The command line's fs verbs are cloud9's new Fsys and verbs, which are not on sr.ht yet: build.zig.zon takes cloud9 from ../cloud9 (in the cli workspace, the c9-client line merged with main's two fs fixes the old pin 0702e33b had, so nothing it had is lost), and says the pin returns once that cloud9 is pushed. build.zig's one round of lazy fetches skips a dependency by path, which has no hash and is there already. pardes uses no API the old pin lacked but Fsys and verbs: no adaptation. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- build.zig | 6 +++++- build.zig.zon | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build.zig b/build.zig index d99f3985..7bd43795 100644 --- a/build.zig +++ b/build.zig @@ -250,7 +250,11 @@ pub fn build(b: *std.Build) void { // `b.dependency` below would end the configure to fetch its own alone. const ts = treeSitter(b, io, target, c_optimize, tree_sitter_grammars); inline for (.{ "cloud9", "vaxis", "ghostty", "uucode", "zstbi", "mvzr", "zstd", "xitdb" }) |name| { - if (!std.Build.package_map.get(@field(zon.dependencies, name).hash).?.available) _ = b.lazyDependency(name, .{}); + // One by path (cloud9, until its pin returns) is there already. + const dep = @field(zon.dependencies, name); + if (@hasField(@TypeOf(dep), "hash")) if (!std.Build.package_map.get(dep.hash).?.available) { + _ = b.lazyDependency(name, .{}); + }; } const cloud9 = b.dependency("cloud9", .{ .target = target, .optimize = optimize }).module("cloud9"); for (core_mods) |mod| mod.addImport("cloud9", cloud9); diff --git a/build.zig.zon b/build.zig.zon index ab6a693d..0c82860b 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -14,11 +14,11 @@ // `git@git.sr.ht:~gbrls/cloud9`; zig has no git+ssh support, so the // read-only HTTPS URL is what a manifest can carry. Re-pin with // `zig fetch --save=cloud9 git+https://git.sr.ht/~gbrls/cloud9#`. - .cloud9 = .{ - .url = "git+https://git.sr.ht/~gbrls/cloud9#0702e33bcfadf0abd9ccbaa8b681a19a84c332fe", - .hash = "cloud9-0.1.0-yt86qkExHgCRI7_eJsztRECamioWguBj2mTFsJ5N-AOn", - .lazy = true, - }, + // + // For now the sibling checkout, by path: the command line's `fs` + // verbs are cloud9's new Fsys and verbs, not published yet. The pin + // (it was 0702e33b) returns once that cloud9 is pushed. + .cloud9 = .{ .path = "../cloud9", .lazy = true }, // Pinned to the exact libvaxis commit ghostty is built against, so it // is compatible with ghostty's uucode configuration (the one we share // with it via `external_uucode` in build.zig). -- cgit v1.3