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:
1515 - run: git submodule update --init --recursive
1616
1717 - run: apt -y install xz-utils jq
18 - run: ./download_zig.sh 0.10.0-dev.397+f1b79c9a4
18 - run: ./download_zig.sh 0.10.0-dev.466+e288148f6
1919 - run: zig version
2020 - run: zig env
2121 - run: zig build -Dbootstrap
.github/workflows/nightly.yml+1-1
......@@ -28,7 +28,7 @@ jobs:
2828 - name: Setup Zig
2929 uses: goto-bus-stop/setup-zig@v1
3030 with:
31 version: "0.10.0-dev.397+f1b79c9a4"
31 version: "0.10.0-dev.466+e288148f6"
3232
3333 - run: zig version
3434 - run: zig env
README.md+1-1
......@@ -17,7 +17,7 @@ A package manager for the Zig programming language.
1717- https://github.com/nektro/zigmod/releases
1818
1919## Built With
20- Zig master (at least `0.10.0-dev.397+f1b79c9a4`)
20- Zig master (at least `0.10.0-dev.466+e288148f6`)
2121- See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock)
2222
2323### Build from Source
deps.zig+1-1
......@@ -44,7 +44,7 @@ pub const Package = struct {
4444};
4545
4646fn 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;
4848 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}));
4949}
5050
docs/README.md+1-1
......@@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed.
1010
1111As 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
1515## Download
1616You 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 {
3636 }
3737 }
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) {
4040 error.FileNotFound => u.fail("error: zig.mod manifest not found! must run from project root.", .{}),
4141 else => return err,
4242 };
src/cmd/init.zig+2-2
......@@ -137,7 +137,7 @@ pub fn execute(args: [][]u8) !void {
137137 const do = try inquirer.forConfirm(stdout, stdin, "It appears you're using git. Do you want init to add Zigmod to your .gitignore?", gpa);
138138 if (do) {
139139 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", .{}));
141141 defer file.close();
142142 const len = try file.getEndPos();
143143 if (len > 0) try file.seekTo(len - 1);
......@@ -156,7 +156,7 @@ pub fn execute(args: [][]u8) !void {
156156 const do = try inquirer.forConfirm(stdout, stdin, "It appears you're using git. Do you want init to add Zigmod to your .gitattributes?", gpa);
157157 if (do) {
158158 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", .{}));
160160 defer file.close();
161161 const len = try file.getEndPos();
162162 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 {
5858 break :blk _req.status.code == 200;
5959 };
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 });
6262 try file.seekTo(try file.getEndPos());
6363
6464 const file_w = file.writer();
zig.mod+1-1
......@@ -3,7 +3,7 @@ name: zigmod
33main: src/lib.zig
44license: MIT
55description: A package manager for the Zig programming language.
6min_zig_version: 0.10.0-dev.397+f1b79c9a4
6min_zig_version: 0.10.0-dev.466+e288148f6
77dependencies:
88 - src: git https://github.com/yaml/libyaml tag-0.2.5
99 id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc