| author | |
| committer | |
| log | d3abd760a31b34e12f8a910d1c0ea2eff7344435 |
| tree | 511eee8bdc6bce028b4fb51019332168259d1c6d |
| parent | 163ba497a8fba174962f9161531c7f8f550b36bc |
fixes #5710 files changed, 12 insertions(+), 12 deletions(-)
.circleci/config.yml+1-1| ... | @@ -15,7 +15,7 @@ jobs: | ... | @@ -15,7 +15,7 @@ jobs: |
| 15 | - run: git submodule update --init --recursive | 15 | - run: git submodule update --init --recursive |
| 16 | 16 | ||
| 17 | - run: apt -y install xz-utils jq | 17 | - run: apt -y install xz-utils jq |
| 18 | - run: ./download_zig.sh 0.10.0-dev.466+e288148f6 | 18 | - run: ./download_zig.sh 0.10.0-dev.513+029844210 |
| 19 | - run: zig version | 19 | - run: zig version |
| 20 | - run: zig env | 20 | - run: zig env |
| 21 | - run: zig build -Dbootstrap | 21 | - run: zig build -Dbootstrap |
.github/workflows/nightly.yml+1-1| ... | @@ -28,7 +28,7 @@ jobs: | ... | @@ -28,7 +28,7 @@ jobs: |
| 28 | - name: Setup Zig | 28 | - name: Setup Zig |
| 29 | uses: goto-bus-stop/setup-zig@v1 | 29 | uses: goto-bus-stop/setup-zig@v1 |
| 30 | with: | 30 | with: |
| 31 | version: "0.10.0-dev.466+e288148f6" | 31 | version: "0.10.0-dev.513+029844210" |
| 32 | 32 | ||
| 33 | - run: zig version | 33 | - run: zig version |
| 34 | - run: zig env | 34 | - run: zig env |
README.md+1-1| ... | @@ -17,7 +17,7 @@ A package manager for the Zig programming language. | ... | @@ -17,7 +17,7 @@ A package manager for the Zig programming language. |
| 17 | - https://github.com/nektro/zigmod/releases | 17 | - https://github.com/nektro/zigmod/releases |
| 18 | 18 | ||
| 19 | ## Built With | 19 | ## Built With |
| 20 | - Zig master (at least `0.10.0-dev.466+e288148f6`) | 20 | - Zig master (at least `0.10.0-dev.513+029844210`) |
| 21 | - See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock) | 21 | - See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock) |
| 22 | 22 | ||
| 23 | ### Build from Source | 23 | ### Build from Source |
deps.zig+2-2| ... | @@ -13,7 +13,7 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void { | ... | @@ -13,7 +13,7 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void { |
| 13 | } | 13 | } |
| 14 | var llc = false; | 14 | var llc = false; |
| 15 | var vcpkg = false; | 15 | var vcpkg = false; |
| 16 | inline for (std.meta.declarations(package_data)) |decl| { | 16 | inline for (comptime std.meta.declarations(package_data)) |decl| { |
| 17 | const pkg = @as(Package, @field(package_data, decl.name)); | 17 | const pkg = @as(Package, @field(package_data, decl.name)); |
| 18 | inline for (pkg.system_libs) |item| { | 18 | inline for (pkg.system_libs) |item| { |
| 19 | exe.linkSystemLibrary(item); | 19 | exe.linkSystemLibrary(item); |
| ... | @@ -44,7 +44,7 @@ pub const Package = struct { | ... | @@ -44,7 +44,7 @@ pub const Package = struct { |
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | fn checkMinZig(current: std.SemanticVersion, exe: *std.build.LibExeObjStep) void { | 46 | fn checkMinZig(current: std.SemanticVersion, exe: *std.build.LibExeObjStep) void { |
| 47 | const min = std.SemanticVersion.parse("0.10.0-dev.466+e288148f6") catch return; | 47 | const min = std.SemanticVersion.parse("0.10.0-dev.513+029844210") catch return; |
| 48 | 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})); | 48 | 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})); |
| 49 | } | 49 | } |
| 50 | 50 |
docs/README.md+1-1| ... | @@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed. | ... | @@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed. |
| 10 | 10 | ||
| 11 | 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. | 11 | 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. |
| 12 | 12 | ||
| 13 | The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.466+e288148f6`. | 13 | The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.513+029844210`. |
| 14 | 14 | ||
| 15 | ## Download | 15 | ## Download |
| 16 | You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source. | 16 | You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source. |
src/cmd/aq.zig+1-1| ... | @@ -32,7 +32,7 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -32,7 +32,7 @@ pub fn execute(args: [][]u8) !void { |
| 32 | return; | 32 | return; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | inline for (std.meta.declarations(commands)) |decl| { | 35 | inline for (comptime std.meta.declarations(commands)) |decl| { |
| 36 | if (std.mem.eql(u8, args[0], decl.name)) { | 36 | if (std.mem.eql(u8, args[0], decl.name)) { |
| 37 | const cmd = @field(commands, decl.name); | 37 | const cmd = @field(commands, decl.name); |
| 38 | try cmd.execute(args[1..]); | 38 | try cmd.execute(args[1..]); |
src/cmd/fetch.zig+1-1| ... | @@ -60,7 +60,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D | ... | @@ -60,7 +60,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 60 | \\ } | 60 | \\ } |
| 61 | \\ var llc = false; | 61 | \\ var llc = false; |
| 62 | \\ var vcpkg = false; | 62 | \\ var vcpkg = false; |
| 63 | \\ inline for (std.meta.declarations(package_data)) |decl| { | 63 | \\ inline for (comptime std.meta.declarations(package_data)) |decl| { |
| 64 | \\ const pkg = @as(Package, @field(package_data, decl.name)); | 64 | \\ const pkg = @as(Package, @field(package_data, decl.name)); |
| 65 | \\ inline for (pkg.system_libs) |item| { | 65 | \\ inline for (pkg.system_libs) |item| { |
| 66 | \\ exe.linkSystemLibrary(item); | 66 | \\ exe.linkSystemLibrary(item); |
src/cmd/zpm.zig+1-1| ... | @@ -43,7 +43,7 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -43,7 +43,7 @@ pub fn execute(args: [][]u8) !void { |
| 43 | return; | 43 | return; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | inline for (std.meta.declarations(commands)) |decl| { | 46 | inline for (comptime std.meta.declarations(commands)) |decl| { |
| 47 | if (std.mem.eql(u8, args[0], decl.name)) { | 47 | if (std.mem.eql(u8, args[0], decl.name)) { |
| 48 | const cmd = @field(commands, decl.name); | 48 | const cmd = @field(commands, decl.name); |
| 49 | try cmd.execute(args[1..]); | 49 | try cmd.execute(args[1..]); |
src/main.zig+2-2| ... | @@ -28,7 +28,7 @@ pub fn main() !void { | ... | @@ -28,7 +28,7 @@ pub fn main() !void { |
| 28 | }); | 28 | }); |
| 29 | u.print("", .{}); | 29 | u.print("", .{}); |
| 30 | u.print("The commands available are:", .{}); | 30 | u.print("The commands available are:", .{}); |
| 31 | inline for (std.meta.declarations(available)) |decl| { | 31 | inline for (comptime std.meta.declarations(available)) |decl| { |
| 32 | u.print(" - {s}", .{decl.name}); | 32 | u.print(" - {s}", .{decl.name}); |
| 33 | } | 33 | } |
| 34 | return; | 34 | return; |
| ... | @@ -47,7 +47,7 @@ pub fn main() !void { | ... | @@ -47,7 +47,7 @@ pub fn main() !void { |
| 47 | try zigmod.init(); | 47 | try zigmod.init(); |
| 48 | defer zigmod.deinit(); | 48 | defer zigmod.deinit(); |
| 49 | 49 | ||
| 50 | inline for (std.meta.declarations(available)) |decl| { | 50 | inline for (comptime std.meta.declarations(available)) |decl| { |
| 51 | if (std.mem.eql(u8, args[0], decl.name)) { | 51 | if (std.mem.eql(u8, args[0], decl.name)) { |
| 52 | const cmd = @field(available, decl.name); | 52 | const cmd = @field(available, decl.name); |
| 53 | try cmd.execute(args[1..]); | 53 | try cmd.execute(args[1..]); |
zig.mod+1-1| ... | @@ -3,7 +3,7 @@ name: zigmod | ... | @@ -3,7 +3,7 @@ name: zigmod |
| 3 | main: src/lib.zig | 3 | main: src/lib.zig |
| 4 | license: MIT | 4 | license: MIT |
| 5 | description: A package manager for the Zig programming language. | 5 | description: A package manager for the Zig programming language. |
| 6 | min_zig_version: 0.10.0-dev.466+e288148f6 | 6 | min_zig_version: 0.10.0-dev.513+029844210 |
| 7 | dependencies: | 7 | dependencies: |
| 8 | - src: git https://github.com/yaml/libyaml tag-0.2.5 | 8 | - src: git https://github.com/yaml/libyaml tag-0.2.5 |
| 9 | id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc | 9 | id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc |