diff --git a/.circleci/config.yml b/.circleci/config.yml index 0c26419b140feb7066b37029b8f99d6ad8a4eb0d..c2cfc30e059e6d09bd989748b4ea46a0c14922ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: - run: git submodule update --init --recursive - run: apt -y install xz-utils jq - - run: ./download_zig.sh 0.10.0-dev.466+e288148f6 + - run: ./download_zig.sh 0.10.0-dev.513+029844210 - run: zig version - run: zig env - run: zig build -Dbootstrap diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2a1c431373296dd578ea9a24076bfdca6f313e5b..84dafb9b5bc853b14f6321cede63bb5eb91f317e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Zig uses: goto-bus-stop/setup-zig@v1 with: - version: "0.10.0-dev.466+e288148f6" + version: "0.10.0-dev.513+029844210" - run: zig version - run: zig env diff --git a/README.md b/README.md index 1015e4ab81afdd0274f4a595f3c303ec9e30a582..72ad6070b96b2b87add9fc6dde763e00e7207e69 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ A package manager for the Zig programming language. - https://github.com/nektro/zigmod/releases ## Built With -- Zig master (at least `0.10.0-dev.466+e288148f6`) +- Zig master (at least `0.10.0-dev.513+029844210`) - See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock) ### Build from Source diff --git a/deps.zig b/deps.zig index 02042d8710a915a8bcb2f4bfb76b2f2a011ced97..2537d3e4a2cb2e420dcbbab4a524cd558e8b47da 100644 --- a/deps.zig +++ b/deps.zig @@ -13,7 +13,7 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void { } var llc = false; var vcpkg = false; - inline for (std.meta.declarations(package_data)) |decl| { + inline for (comptime std.meta.declarations(package_data)) |decl| { const pkg = @as(Package, @field(package_data, decl.name)); inline for (pkg.system_libs) |item| { exe.linkSystemLibrary(item); @@ -44,7 +44,7 @@ pub const Package = struct { }; fn checkMinZig(current: std.SemanticVersion, exe: *std.build.LibExeObjStep) void { - const min = std.SemanticVersion.parse("0.10.0-dev.466+e288148f6") catch return; + const min = std.SemanticVersion.parse("0.10.0-dev.513+029844210") catch return; if (current.order(min).compare(.lt)) @panic(exe.builder.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{current, min})); } diff --git a/docs/README.md b/docs/README.md index 5fb6eb85f96f6074bea7f7a0ff635d280ec8e880..a4005b2932a359f3152b40dbe6fd822409d36291 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed. As Zig is still in development itself, if you plan to contribute to Zigmod you will need a master download of Zig. Those can be obtained from https://ziglang.org/download/#release-master. -The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.466+e288148f6`. +The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.513+029844210`. ## Download You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source. diff --git a/src/cmd/aq.zig b/src/cmd/aq.zig index f0e77b268d32e270e3779cb4391257ce7cb1aab3..d8816c1bf079f9939f90ce621c0cf9a5a79a3f63 100644 --- a/src/cmd/aq.zig +++ b/src/cmd/aq.zig @@ -32,7 +32,7 @@ pub fn execute(args: [][]u8) !void { return; } - inline for (std.meta.declarations(commands)) |decl| { + inline for (comptime std.meta.declarations(commands)) |decl| { if (std.mem.eql(u8, args[0], decl.name)) { const cmd = @field(commands, decl.name); try cmd.execute(args[1..]); diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index d224cf56c7cd891b4b35529a73c116c6ef6727ce..7124fcef4d87af53d42a245d3280f4b03011563a 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -60,7 +60,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D \\ } \\ var llc = false; \\ var vcpkg = false; - \\ inline for (std.meta.declarations(package_data)) |decl| { + \\ inline for (comptime std.meta.declarations(package_data)) |decl| { \\ const pkg = @as(Package, @field(package_data, decl.name)); \\ inline for (pkg.system_libs) |item| { \\ exe.linkSystemLibrary(item); diff --git a/src/cmd/zpm.zig b/src/cmd/zpm.zig index e198a000c54679406684815117b3067521a2a9ba..ad179b4d77f1a6042fcebb0134bf06a4119aaca7 100644 --- a/src/cmd/zpm.zig +++ b/src/cmd/zpm.zig @@ -43,7 +43,7 @@ pub fn execute(args: [][]u8) !void { return; } - inline for (std.meta.declarations(commands)) |decl| { + inline for (comptime std.meta.declarations(commands)) |decl| { if (std.mem.eql(u8, args[0], decl.name)) { const cmd = @field(commands, decl.name); try cmd.execute(args[1..]); diff --git a/src/main.zig b/src/main.zig index d6e2680385660c51fea65f96e9b99372856cdce0..a07087b8e1c3e39b3cd380f07175f0339107d40f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -28,7 +28,7 @@ pub fn main() !void { }); u.print("", .{}); u.print("The commands available are:", .{}); - inline for (std.meta.declarations(available)) |decl| { + inline for (comptime std.meta.declarations(available)) |decl| { u.print(" - {s}", .{decl.name}); } return; @@ -47,7 +47,7 @@ pub fn main() !void { try zigmod.init(); defer zigmod.deinit(); - inline for (std.meta.declarations(available)) |decl| { + inline for (comptime std.meta.declarations(available)) |decl| { if (std.mem.eql(u8, args[0], decl.name)) { const cmd = @field(available, decl.name); try cmd.execute(args[1..]); diff --git a/zig.mod b/zig.mod index eff38affa389b61a881043ee4e8dc7b8e538b71c..56de5eaad19eaba463423eae79bbaddbdc38e4cc 100644 --- a/zig.mod +++ b/zig.mod @@ -3,7 +3,7 @@ name: zigmod main: src/lib.zig license: MIT description: A package manager for the Zig programming language. -min_zig_version: 0.10.0-dev.466+e288148f6 +min_zig_version: 0.10.0-dev.513+029844210 dependencies: - src: git https://github.com/yaml/libyaml tag-0.2.5 id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc