authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-02-02 03:04:21 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-02-02 03:04:21 -08:00
logd3abd760a31b34e12f8a910d1c0ea2eff7344435
tree511eee8bdc6bce028b4fb51019332168259d1c6d
parent163ba497a8fba174962f9161531c7f8f550b36bc

update to zig master 0.10.0-dev.513+029844210

fixes #57

10 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 --recursive15 - run: git submodule update --init --recursive
1616
17 - run: apt -y install xz-utils jq17 - run: apt -y install xz-utils jq
18 - run: ./download_zig.sh 0.10.0-dev.466+e288148f618 - run: ./download_zig.sh 0.10.0-dev.513+029844210
19 - run: zig version19 - run: zig version
20 - run: zig env20 - run: zig env
21 - run: zig build -Dbootstrap21 - run: zig build -Dbootstrap
.github/workflows/nightly.yml+1-1
...@@ -28,7 +28,7 @@ jobs:...@@ -28,7 +28,7 @@ jobs:
28 - name: Setup Zig28 - name: Setup Zig
29 uses: goto-bus-stop/setup-zig@v129 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"
3232
33 - run: zig version33 - run: zig version
34 - run: zig env34 - 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/releases17- https://github.com/nektro/zigmod/releases
1818
19## Built With19## 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)
2222
23### Build from Source23### 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};
4545
46fn checkMinZig(current: std.SemanticVersion, exe: *std.build.LibExeObjStep) void {46fn 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}
5050
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.
1010
11As 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.11As 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.
1212
13The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.466+e288148f6`.13The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.513+029844210`.
1414
15## Download15## Download
16You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.16You 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 }
3434
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 }
4545
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();
4949
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
3main: src/lib.zig3main: src/lib.zig
4license: MIT4license: MIT
5description: A package manager for the Zig programming language.5description: A package manager for the Zig programming language.
6min_zig_version: 0.10.0-dev.466+e288148f66min_zig_version: 0.10.0-dev.513+029844210
7dependencies:7dependencies:
8 - src: git https://github.com/yaml/libyaml tag-0.2.58 - src: git https://github.com/yaml/libyaml tag-0.2.5
9 id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc9 id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc