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@@ -1,4 +1,5 @@
 2 const std = @import("std");
 3+const build_zig_zon = @import("build.zig.zon");
 4 
 5 const linux_targets: []const std.Target.Query = &.{
 6     .{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
 7@@ -15,11 +16,11 @@ pub fn build(b: *std.Build) void {
 8     const is_macos = target.result.os.tag == .macos;
 9     const optimize = b.standardOptimizeOption(.{});
10     const version = b.option([]const u8, "version", "Version string for release") orelse
11-        @as([]const u8, @import("build.zig.zon").version);
12+        @as([]const u8, build_zig_zon.version);
13 
14     const options = b.addOptions();
15     options.addOption([]const u8, "version", version);
16-    const ghostty_ver = @import("build.zig.zon").dependencies.ghostty.hash;
17+    const ghostty_ver = build_zig_zon.dependencies.ghostty.hash;
18     options.addOption([]const u8, "ghostty_version", ghostty_ver);
19 
20     const exe_mod = b.createModule(.{
+1, -1
1@@ -5,7 +5,7 @@
2     .minimum_zig_version = "0.15.2",
3     .dependencies = .{
4         .ghostty = .{
5-            .url = "git+https://github.com/ghostty-org/ghostty.git/?ref=HEAD#30e1f3bb8c3d2949e9ae4aefc1c2b76142569cfb",
6+            .url = "git+https://github.com/ghostty-org/ghostty#30e1f3bb8c3d2949e9ae4aefc1c2b76142569cfb",
7             .hash = "ghostty-1.3.2-dev-5UdBC5gHIgWG-_Voonf5F76Vt2I2KljI5lIuvI-7eyBI",
8         },
9     },