From 528a8645f8408081615c180a520e41b83041c442 Mon Sep 17 00:00:00 2001 From: drglove Date: Fri, 5 Jan 2024 08:15:51 +0000 Subject: [PATCH 1/5] Fix casing of std.build -> std.Build in tests. --- test/tests.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests.zig b/test/tests.zig index 45c075c..d90b049 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -8,7 +8,7 @@ const mem = std.mem; const Allocator = std.mem.Allocator; const Child = std.process.Child; -const Build = std.build; +const Build = std.Build; const FileSource = std.Build.FileSource; const Reader = fs.File.Reader; const RunStep = std.Build.RunStep; From 7a0cbb131f3cb93b6ef93587999bb2dbd1daeabe Mon Sep 17 00:00:00 2001 From: drglove Date: Fri, 5 Jan 2024 08:17:09 +0000 Subject: [PATCH 2/5] Use std.Build.LazyPath over now removed std.Build.FileSource. See corresponding ziglang change here: https://github.com/ziglang/zig/issues/16353 --- test/tests.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index d90b049..0a19277 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -9,7 +9,7 @@ const mem = std.mem; const Allocator = std.mem.Allocator; const Child = std.process.Child; const Build = std.Build; -const FileSource = std.Build.FileSource; +const LazyPath = std.Build.LazyPath; const Reader = fs.File.Reader; const RunStep = std.Build.RunStep; const Step = Build.Step; @@ -132,9 +132,9 @@ fn createCase(b: *Build, name: []const u8) *Step { const CheckNamedStep = struct { step: Step, exercise: Exercise, - stderr: FileSource, + stderr: LazyPath, - pub fn create(owner: *Build, exercise: Exercise, stderr: FileSource) *CheckNamedStep { + pub fn create(owner: *Build, exercise: Exercise, stderr: LazyPath) *CheckNamedStep { const self = owner.allocator.create(CheckNamedStep) catch @panic("OOM"); self.* = .{ .step = Step.init(.{ @@ -180,12 +180,12 @@ const CheckNamedStep = struct { const CheckStep = struct { step: Step, exercises: []const Exercise, - stderr: FileSource, + stderr: LazyPath, pub fn create( owner: *Build, exercises: []const Exercise, - stderr: FileSource, + stderr: LazyPath, ) *CheckStep { const self = owner.allocator.create(CheckStep) catch @panic("OOM"); self.* = .{ From ba9447d2c64e7d8fd1bb5d57b2d753b17c6dd00b Mon Sep 17 00:00:00 2001 From: drglove Date: Fri, 5 Jan 2024 08:24:29 +0000 Subject: [PATCH 3/5] Bump version to match required changes. --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 1155e24..ea47f11 100644 --- a/build.zig +++ b/build.zig @@ -15,7 +15,7 @@ const print = std.debug.print; // 1) Getting Started // 2) Version Changes comptime { - const required_zig = "0.12.0-dev.1243"; + const required_zig = "0.12.0-dev.2043"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { From 7d23ddc1f633a13dcf24177ef9b6e8608d393143 Mon Sep 17 00:00:00 2001 From: drglove Date: Fri, 5 Jan 2024 08:27:52 +0000 Subject: [PATCH 4/5] Update version changes with 2043. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 279cbdd..57fb8d1 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ that if you update one, you may need to also update the other. ### Version Changes Version-0.12.0-dev.1243 +* *2024-01-05* zig 0.12.0-dev.2043 - rename of `std.Build.FileSource` to `std.Build.LazyPath` - see[#16353](https://github.com/ziglang/zig/issues/16353) * *2023-10-24* zig 0.12.0-dev.1243 - changes in `std.ChildProcess`: renamed exec to run - see[#5853](https://github.com/ziglang/zig/issues/5853) * *2023-06-26* zig 0.11.0-dev.4246 - changes in compile step (now it can be null) * *2023-06-26* zig 0.11.0-dev.3853 - removal of destination type from all cast builtins From 15de3785a36c2e4f06fe573d761a69ed306f5fea Mon Sep 17 00:00:00 2001 From: drglove Date: Fri, 5 Jan 2024 08:43:31 +0000 Subject: [PATCH 5/5] Bump ziglang version in Version Changes header --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 57fb8d1..7f648e4 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.12.0-dev.1243 +Version-0.12.0-dev.2043 * *2024-01-05* zig 0.12.0-dev.2043 - rename of `std.Build.FileSource` to `std.Build.LazyPath` - see[#16353](https://github.com/ziglang/zig/issues/16353) * *2023-10-24* zig 0.12.0-dev.1243 - changes in `std.ChildProcess`: renamed exec to run - see[#5853](https://github.com/ziglang/zig/issues/5853) * *2023-06-26* zig 0.11.0-dev.4246 - changes in compile step (now it can be null)