Commit 935c484

Siva Mahadevan  ·  2026-07-23 09:21:44 -0400 EDT
parent 3817645
build: canonicalize ghostty dep URL (#206)

While here, only import build.zig.zon once in build.zig.
2 files changed,  +4, -3
+3, -2
......@@ -1,4 +1,5 @@
11 const std = @import("std");
2+const build_zig_zon = @import("build.zig.zon");
23
34 const linux_targets: []const std.Target.Query = &.{
45 .{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
......@@ -15,11 +16,11 @@ pub fn build(b: *std.Build) void {
1516 const is_macos = target.result.os.tag == .macos;
1617 const optimize = b.standardOptimizeOption(.{});
1718 const version = b.option([]const u8, "version", "Version string for release") orelse
18- @as([]const u8, @import("build.zig.zon").version);
19+ @as([]const u8, build_zig_zon.version);
1920
2021 const options = b.addOptions();
2122 options.addOption([]const u8, "version", version);
22- const ghostty_ver = @import("build.zig.zon").dependencies.ghostty.hash;
23+ const ghostty_ver = build_zig_zon.dependencies.ghostty.hash;
2324 options.addOption([]const u8, "ghostty_version", ghostty_ver);
2425
2526 const exe_mod = b.createModule(.{
+1, -1
......@@ -5,7 +5,7 @@
55 .minimum_zig_version = "0.15.2",
66 .dependencies = .{
77 .ghostty = .{
8- .url = "git+https://github.com/ghostty-org/ghostty.git/?ref=HEAD#30e1f3bb8c3d2949e9ae4aefc1c2b76142569cfb",
8+ .url = "git+https://github.com/ghostty-org/ghostty#30e1f3bb8c3d2949e9ae4aefc1c2b76142569cfb",
99 .hash = "ghostty-1.3.2-dev-5UdBC5gHIgWG-_Voonf5F76Vt2I2KljI5lIuvI-7eyBI",
1010 },
1111 },