Skip to content

Commit 2f34b58

Browse files
committed
Upgrade build.zig and dependencies for
ziglang/zig#19597
1 parent 53fd0a4 commit 2f34b58

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

build.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ pub fn build(b: *std.Build) !void {
88
const optimize = b.standardOptimizeOption(.{});
99

1010
const ziggy = b.addModule("ziggy", .{
11-
.root_source_file = .{ .path = "src/root.zig" },
11+
.root_source_file = b.path("src/root.zig"),
1212
.target = target,
1313
.optimize = optimize,
1414
.strip = false,
1515
});
1616

1717
const unit_tests = b.addTest(.{
18-
.root_source_file = .{ .path = "src/root.zig" },
18+
.root_source_file = b.path("src/root.zig"),
1919
.target = target,
2020
.optimize = optimize,
2121
.strip = false,
@@ -34,7 +34,7 @@ pub fn build(b: *std.Build) !void {
3434

3535
const ziggy_exe = b.addExecutable(.{
3636
.name = "ziggy",
37-
.root_source_file = .{ .path = "src/main.zig" },
37+
.root_source_file = b.path("src/main.zig"),
3838
.target = target,
3939
.optimize = optimize,
4040
});
@@ -55,7 +55,7 @@ pub fn build(b: *std.Build) !void {
5555

5656
const ziggy_check = b.addExecutable(.{
5757
.name = "ziggy_check",
58-
.root_source_file = .{ .path = "src/main.zig" },
58+
.root_source_file = b.path("src/main.zig"),
5959
.target = target,
6060
.optimize = optimize,
6161
});
@@ -82,7 +82,7 @@ pub fn build(b: *std.Build) !void {
8282

8383
const release_exe = b.addExecutable(.{
8484
.name = "ziggy",
85-
.root_source_file = .{ .path = "src/main.zig" },
85+
.root_source_file = b.path("src/main.zig"),
8686
.target = release_target,
8787
.optimize = .ReleaseFast,
8888
});

build.zig.zon

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
.version = "0.0.0",
44
.dependencies = .{
55
.@"known-folders" = .{
6-
.url = "git+https://github.com/ziglibs/known-folders.git#055c95a717c5b54a0fc52ff5f370439c28eb2e73",
7-
.hash = "12204a8a7e9184a77f70795b1fc8a9f94dff5cce208c20c5c6452967dddc498e0b64",
6+
.url = "git+https://github.com/ziglibs/known-folders.git#0ad514dcfb7525e32ae349b9acc0a53976f3a9fa",
7+
.hash = "12209cde192558f8b3dc098ac2330fc2a14fdd211c5433afd33085af75caa9183147",
88
},
99
.@"zig-lsp-kit" = .{
10-
.url = "git+https://github.com/kristoff-it/zig-lsp-kit.git#9efbd913672be612b19e0c8932bf145b47b10b87",
11-
.hash = "1220e7de02c34269ceb849818c3d66c6a745647345c34b968df6df7ac7e84b077917",
10+
// TODO revert to kristoff-it when https://github.com/kristoff-it/zig-lsp-kit/pull/1 is merged
11+
.url = "git+https://github.com/MFAshby/zig-lsp-kit.git#1c07e3e3305f8dd6355735173321c344fc152d3e",
12+
.hash = "12204a4669fa6e8ebb1720e3581a24c1a7f538f2f4ee3ebc91a9e36285c89572d761",
1213
},
1314
.yaml = .{
14-
.url = "git+https://github.com/kubkon/zig-yaml.git#9308a64224f32184500d8a8178be0066443d65bc",
15-
.hash = "122084941d6e06491a85e1356c7cca24a078103d34155e34a10a16a53f420d6bc37b",
15+
.url = "git+https://github.com/kubkon/zig-yaml.git#beddd5da24de91d430ca7028b00986f7745b13e9",
16+
.hash = "1220841471bd4891cbb199d27cc5e7e0fb0a5b7c5388a70bd24fa3eb7285755c396c",
1617
},
1718
},
1819
.paths = .{

0 commit comments

Comments
 (0)