authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-02-02 03:02:44 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-02-02 03:02:44 -08:00
log163ba497a8fba174962f9161531c7f8f550b36bc
treec4f4ac07979812d60de990ad3c5bf2f98c919eb7
parentaf4661e2abd05bf3c09295063900681235d40149

update to zig master 0.10.0-dev.466+e288148f6


9 files changed, 10 insertions(+), 10 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.397+f1b79c9a418 - run: ./download_zig.sh 0.10.0-dev.466+e288148f6
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.397+f1b79c9a4"31 version: "0.10.0-dev.466+e288148f6"
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.397+f1b79c9a4`)20- Zig master (at least `0.10.0-dev.466+e288148f6`)
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+1-1
...@@ -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.397+f1b79c9a4") catch return;47 const min = std.SemanticVersion.parse("0.10.0-dev.466+e288148f6") 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.397+f1b79c9a4`.13The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.466+e288148f6`.
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/aquila/add.zig+1-1
...@@ -36,7 +36,7 @@ pub fn do(dir: std.fs.Dir, pkg_id: string) !string {...@@ -36,7 +36,7 @@ pub fn do(dir: std.fs.Dir, pkg_id: string) !string {
36 }36 }
37 }37 }
3838
39 const file = dir.openFile("zig.mod", .{ .read = true, .write = true }) catch |err| switch (err) {39 const file = dir.openFile("zig.mod", .{ .mode = .read_write }) catch |err| switch (err) {
40 error.FileNotFound => u.fail("error: zig.mod manifest not found! must run from project root.", .{}),40 error.FileNotFound => u.fail("error: zig.mod manifest not found! must run from project root.", .{}),
41 else => return err,41 else => return err,
42 };42 };
src/cmd/init.zig+2-2
...@@ -137,7 +137,7 @@ pub fn execute(args: [][]u8) !void {...@@ -137,7 +137,7 @@ pub fn execute(args: [][]u8) !void {
137 const do = try inquirer.forConfirm(stdout, stdin, "It appears you're using git. Do you want init to add Zigmod to your .gitignore?", gpa);137 const do = try inquirer.forConfirm(stdout, stdin, "It appears you're using git. Do you want init to add Zigmod to your .gitignore?", gpa);
138 if (do) {138 if (do) {
139 const exists = try u.does_file_exist(null, ".gitignore");139 const exists = try u.does_file_exist(null, ".gitignore");
140 const file: std.fs.File = try (if (exists) cwd.openFile(".gitignore", .{ .read = true, .write = true }) else cwd.createFile(".gitignore", .{}));140 const file: std.fs.File = try (if (exists) cwd.openFile(".gitignore", .{ .mode = .read_write }) else cwd.createFile(".gitignore", .{}));
141 defer file.close();141 defer file.close();
142 const len = try file.getEndPos();142 const len = try file.getEndPos();
143 if (len > 0) try file.seekTo(len - 1);143 if (len > 0) try file.seekTo(len - 1);
...@@ -156,7 +156,7 @@ pub fn execute(args: [][]u8) !void {...@@ -156,7 +156,7 @@ pub fn execute(args: [][]u8) !void {
156 const do = try inquirer.forConfirm(stdout, stdin, "It appears you're using git. Do you want init to add Zigmod to your .gitattributes?", gpa);156 const do = try inquirer.forConfirm(stdout, stdin, "It appears you're using git. Do you want init to add Zigmod to your .gitattributes?", gpa);
157 if (do) {157 if (do) {
158 const exists = try u.does_file_exist(null, ".gitattributes");158 const exists = try u.does_file_exist(null, ".gitattributes");
159 const file: std.fs.File = try (if (exists) cwd.openFile(".gitattributes", .{ .read = true, .write = true }) else cwd.createFile(".gitattributes", .{}));159 const file: std.fs.File = try (if (exists) cwd.openFile(".gitattributes", .{ .mode = .read_write }) else cwd.createFile(".gitattributes", .{}));
160 defer file.close();160 defer file.close();
161 const len = try file.getEndPos();161 const len = try file.getEndPos();
162 if (len > 0) try file.seekTo(len - 1);162 if (len > 0) try file.seekTo(len - 1);
src/cmd/zpm/add.zig+1-1
...@@ -58,7 +58,7 @@ pub fn execute(args: [][]u8) !void {...@@ -58,7 +58,7 @@ pub fn execute(args: [][]u8) !void {
58 break :blk _req.status.code == 200;58 break :blk _req.status.code == 200;
59 };59 };
6060
61 const file = try std.fs.cwd().openFile("zig.mod", .{ .read = true, .write = true });61 const file = try std.fs.cwd().openFile("zig.mod", .{ .mode = .read_write });
62 try file.seekTo(try file.getEndPos());62 try file.seekTo(try file.getEndPos());
6363
64 const file_w = file.writer();64 const file_w = file.writer();
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.397+f1b79c9a46min_zig_version: 0.10.0-dev.466+e288148f6
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