From ac1349041027702b3fa90a0d9fe3ffcc4c344d72 Mon Sep 17 00:00:00 2001 From: Jeeves Date: Tue, 23 Jul 2024 17:17:50 -0600 Subject: [PATCH] update to latest zig --- .gitignore | 2 +- build.zig | 4 ++-- src/modules/volume.zig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index feda423..8ee9b4c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ # Cheers! # -andrewrk -zig-cache/ +.zig-cache/ zig-out/ /release/ /debug/ diff --git a/build.zig b/build.zig index fe5c7dc..c46cd59 100644 --- a/build.zig +++ b/build.zig @@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "statusbar", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void { run_step.dependOn(&run_cmd.step); const exe_unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/src/modules/volume.zig b/src/modules/volume.zig index 5110856..47a7605 100644 --- a/src/modules/volume.zig +++ b/src/modules/volume.zig @@ -15,7 +15,7 @@ pub fn getBlock(module: *Module, allocator: std.mem.Allocator) !Module.Block { _ = module; // const self: *const Self = @fieldParentPtr("module", module); - const child = try std.ChildProcess.run(.{ + const child = try std.process.Child.run(.{ .argv = &[_][]const u8{ "amixer", "sget", "Master" }, .allocator = allocator, });