commit a02edcc457e61a081795b4cd6041d922ea1b7c38
parent 97d1f713a81d15c7239b0a9fa4167d290b3ae09e
Author: brookjeynes <me@brookjeynes.dev>
Date: Tue, 6 Oct 2026 07:07:22 +1000
chore: upgrade zig from 0.16.0 -> 0.17.0
Signed-off-by: brookjeynes <me@brookjeynes.dev>
Diffstat:
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/build.zig b/build.zig
@@ -61,9 +61,7 @@ pub fn build(b: *std.Build) !void {
const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep());
- if (b.args) |args| {
- run_cmd.addArgs(args);
- }
+ run_cmd.addPassthruArgs();
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
diff --git a/build.zig.zon b/build.zig.zon
@@ -2,12 +2,12 @@
.fingerprint = 0x2cdaf8c397088e72,
.name = .lens,
.version = "0.2.0",
- .minimum_zig_version = "0.16.0",
+ .minimum_zig_version = "0.17.0",
.dependencies = .{
.ziggy = .{
- .url = "git+https://github.com/kristoff-it/ziggy#0b61581980d6905dd4108a618d602f5778593122",
- .hash = "ziggy-0.1.0-kTg8v0NWBgAyFtS5awtOlKnC7ddvefR_I0Xh3XQyi7p1",
+ .url = "git+https://github.com/kristoff-it/ziggy#a170fe892d29087344244dec24888710f507f490",
+ .hash = "ziggy-0.2.0-kTg8v5XyBwAL-S3Ci2S2QXYbe0m30-xUIbblJHdFFkKd",
},
},
diff --git a/src/main.zig b/src/main.zig
@@ -152,7 +152,7 @@ pub fn main(init: std.process.Init) !void {
const contents = config_dir.readFileAlloc(io, CONFIG_NAME, allocator, .limited(4096)) catch break :lbl default_config;
defer allocator.free(contents);
- const contentsZ = try allocator.dupeZ(u8, contents);
+ const contentsZ = try allocator.dupeSentinel(u8, contents, 0);
defer allocator.free(contentsZ);
var meta: ziggy.Deserializer.Meta = undefined;