| author | |
| committer | |
| log | 00f5b0c8d152af51ddf14601d62a9d5a61e646d9 |
| tree | c075b31c5d5103f5567610074ebde2c4b8841603 |
| parent | 63de4863696be665f4075bbd963dc59845a79d3d |
18 files changed, 23 insertions(+), 23 deletions(-)
deps.zig+3-3| ... | ... | @@ -40,9 +40,9 @@ pub const GitExactStep = struct { |
| 40 | 40 | return result; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | fn make(step: *std.Build.Step, prog_node: std.Progress.Node) !void { | |
| 43 | fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void { | |
| 44 | 44 | _ = step; |
| 45 | _ = prog_node; | |
| 45 | _ = options; | |
| 46 | 46 | } |
| 47 | 47 | }; |
| 48 | 48 | |
| ... | ... | @@ -121,7 +121,7 @@ pub const Package = struct { |
| 121 | 121 | const result = b.createModule(.{}); |
| 122 | 122 | const dummy_library = b.addStaticLibrary(.{ |
| 123 | 123 | .name = "dummy", |
| 124 | .target = exe.root_module.resolved_target orelse b.host, | |
| 124 | .target = exe.root_module.resolved_target orelse b.graph.host, | |
| 125 | 125 | .optimize = exe.root_module.optimize.?, |
| 126 | 126 | }); |
| 127 | 127 | dummy_library.step.dependOn(fetch_step); |
src/cmd/aq.zig+1-1| ... | ... | @@ -19,7 +19,7 @@ pub const commands = struct { |
| 19 | 19 | |
| 20 | 20 | pub const server_root = "https://aquila.red"; |
| 21 | 21 | |
| 22 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 22 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 23 | 23 | if (args.len == 0) { |
| 24 | 24 | std.debug.print("{s}\n", .{ |
| 25 | 25 | \\This is a subcommand for use with https://github.com/nektro/aquila instances but has no default behavior on its own aside from showing you this nice help text. |
src/cmd/aquila/add.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const aq = @import("./../aq.zig"); |
| 8 | 8 | // |
| 9 | 9 | // |
| 10 | 10 | |
| 11 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 11 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 12 | 12 | _ = self_name; |
| 13 | 13 | |
| 14 | 14 | const pkg_id = args[0]; |
src/cmd/aquila/install.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig"); |
| 8 | 8 | const u = @import("./../../util/index.zig"); |
| 9 | 9 | const common = @import("./../../common.zig"); |
| 10 | 10 | |
| 11 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 11 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 12 | 12 | _ = self_name; |
| 13 | 13 | |
| 14 | 14 | const home = try knownfolders.getPath(gpa, .home); |
src/cmd/aquila/showjson.zig+1-1| ... | ... | @@ -6,7 +6,7 @@ const aq = @import("./../aq.zig"); |
| 6 | 6 | // |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 9 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 10 | 10 | _ = self_name; |
| 11 | 11 | |
| 12 | 12 | const out = std.io.getStdOut().writer(); |
src/cmd/aquila/update.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig"); |
| 8 | 8 | const u = @import("./../../util/index.zig"); |
| 9 | 9 | const common = @import("./../../common.zig"); |
| 10 | 10 | |
| 11 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 11 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 12 | 12 | _ = self_name; |
| 13 | 13 | |
| 14 | 14 | const home = try knownfolders.getPath(gpa, .home); |
src/cmd/ci.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const common = @import("./../common.zig"); |
| 8 | 8 | // Inspired by: |
| 9 | 9 | // https://docs.npmjs.com/cli/v7/commands/npm-ci |
| 10 | 10 | |
| 11 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 11 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 12 | 12 | _ = self_name; |
| 13 | 13 | _ = args; |
| 14 | 14 |
src/cmd/fetch.zig+2-2| ... | ... | @@ -11,7 +11,7 @@ const license = @import("./license.zig"); |
| 11 | 11 | // |
| 12 | 12 | // |
| 13 | 13 | |
| 14 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 14 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 15 | 15 | _ = self_name; |
| 16 | 16 | |
| 17 | 17 | const gpa = std.heap.c_allocator; |
| ... | ... | @@ -87,7 +87,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 87 | 87 | \\ } |
| 88 | 88 | \\ const b = exe.step.owner; |
| 89 | 89 | \\ const result = b.createModule(.{ |
| 90 | \\ .target = exe.root_module.resolved_target orelse b.host, | |
| 90 | \\ .target = exe.root_module.resolved_target orelse b.graph.host, | |
| 91 | 91 | \\ }); |
| 92 | 92 | \\ if (self.import) |capture| { |
| 93 | 93 | \\ result.root_source_file = capture[1]; |
src/cmd/generate.zig+3-3| ... | ... | @@ -9,7 +9,7 @@ const common = @import("./../common.zig"); |
| 9 | 9 | // |
| 10 | 10 | // |
| 11 | 11 | |
| 12 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 12 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 13 | 13 | _ = self_name; |
| 14 | 14 | _ = args; |
| 15 | 15 | |
| ... | ... | @@ -83,9 +83,9 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 83 | 83 | \\ return result; |
| 84 | 84 | \\ } |
| 85 | 85 | \\ |
| 86 | \\ fn make(step: *std.Build.Step, prog_node: std.Progress.Node) !void { | |
| 86 | \\ fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void { | |
| 87 | 87 | \\ _ = step; |
| 88 | \\ _ = prog_node; | |
| 88 | \\ _ = options; | |
| 89 | 89 | \\ } |
| 90 | 90 | \\}; |
| 91 | 91 | \\ |
src/cmd/init.zig+1-1| ... | ... | @@ -13,7 +13,7 @@ const u = @import("./../util/index.zig"); |
| 13 | 13 | // |
| 14 | 14 | // |
| 15 | 15 | |
| 16 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 16 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 17 | 17 | _ = self_name; |
| 18 | 18 | |
| 19 | 19 | std.debug.print("This utility will walk you through creating a zigmod.yml file.\n", .{}); |
src/cmd/license.zig+1-1| ... | ... | @@ -15,7 +15,7 @@ const Map = std.StringArrayHashMap(*List); |
| 15 | 15 | // Inspired by: |
| 16 | 16 | // https://github.com/onur/cargo-license |
| 17 | 17 | |
| 18 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 18 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 19 | 19 | _ = self_name; |
| 20 | 20 | _ = args; |
| 21 | 21 |
src/cmd/sum.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const common = @import("./../common.zig"); |
| 8 | 8 | // |
| 9 | 9 | // |
| 10 | 10 | |
| 11 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 11 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 12 | 12 | _ = self_name; |
| 13 | 13 | _ = args; |
| 14 | 14 |
src/cmd/version.zig+1-1| ... | ... | @@ -7,7 +7,7 @@ const u = @import("./../util/index.zig"); |
| 7 | 7 | // |
| 8 | 8 | // |
| 9 | 9 | |
| 10 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 10 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 11 | 11 | _ = self_name; |
| 12 | 12 | _ = args; |
| 13 | 13 |
src/cmd/zpm.zig+1-1| ... | ... | @@ -30,7 +30,7 @@ pub const Package = struct { |
| 30 | 30 | links: []const string, |
| 31 | 31 | }; |
| 32 | 32 | |
| 33 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 33 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 34 | 34 | if (args.len == 0) { |
| 35 | 35 | std.debug.print("{s}\n", .{ |
| 36 | 36 | \\This is a subcommand for use with https://github.com/zigtools/zpm-server instances but has no default behavior on its own aside from showing you this nice help text. |
src/cmd/zpm/add.zig+1-1| ... | ... | @@ -10,7 +10,7 @@ const zpm = @import("./../zpm.zig"); |
| 10 | 10 | // |
| 11 | 11 | // |
| 12 | 12 | |
| 13 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 13 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 14 | 14 | _ = self_name; |
| 15 | 15 | |
| 16 | 16 | const url = try std.mem.join(gpa, "/", &.{ zpm.server_root, "packages" }); |
src/cmd/zpm/search.zig+1-1| ... | ... | @@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig"); |
| 7 | 7 | // |
| 8 | 8 | // |
| 9 | 9 | |
| 10 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 10 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 11 | 11 | _ = self_name; |
| 12 | 12 | _ = args; |
| 13 | 13 |
src/cmd/zpm/showjson.zig+1-1| ... | ... | @@ -6,7 +6,7 @@ const zpm = @import("./../zpm.zig"); |
| 6 | 6 | // |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 9 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 10 | 10 | _ = self_name; |
| 11 | 11 | |
| 12 | 12 | const out = std.io.getStdOut().writer(); |
src/cmd/zpm/tags.zig+1-1| ... | ... | @@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig"); |
| 7 | 7 | // |
| 8 | 8 | // |
| 9 | 9 | |
| 10 | pub fn execute(self_name: []const u8, args: [][]u8) !void { | |
| 10 | pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | |
| 11 | 11 | _ = self_name; |
| 12 | 12 | _ = args; |
| 13 | 13 |