| author | |
| committer | |
| log | 163ba497a8fba174962f9161531c7f8f550b36bc |
| tree | c4f4ac07979812d60de990ad3c5bf2f98c919eb7 |
| parent | af4661e2abd05bf3c09295063900681235d40149 |
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 --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.397+f1b79c9a4 | 18 | - run: ./download_zig.sh 0.10.0-dev.466+e288148f6 |
| 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.397+f1b79c9a4" | 31 | version: "0.10.0-dev.466+e288148f6" |
| 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.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) |
| 22 | 22 | ||
| 23 | ### Build from Source | 23 | ### 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 | }; |
| 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.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 | } |
| 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.397+f1b79c9a4`. | 13 | The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.466+e288148f6`. |
| 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/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 | } |
| 38 | 38 | ||
| 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 | }; |
| 60 | 60 | ||
| 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()); |
| 63 | 63 | ||
| 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 |
| 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.397+f1b79c9a4 | 6 | min_zig_version: 0.10.0-dev.466+e288148f6 |
| 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 |