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