authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-29 04:57:54 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-29 04:57:54 -07:00
logd312857810eefe270ea5edb8f5517ce74c839d54
tree1e1ff3b74257c839533e6773539db6bb1894c765
parent126199765cc76294e3534f41ef147d925c0cd7f8

update to zig master `0.9.0-dev.677`


6 files changed, 11 insertions(+), 7 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.9.0-dev.642+b87105c92
18 - run: ./download_zig.sh 0.9.0-dev.677+ed174b738
1919 - run: zig version
2020 - run: zig env
2121 - run: zig build -Dbootstrap
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 `0.9.0-dev.642+b87105c92`
20- Zig master `0.9.0-dev.677+ed174b738`
2121
2222### Build from Source
2323Initially,
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 most recent release Zigmod was verified to work with is `0.9.0-dev.642+b87105c92`.
13The most recent release Zigmod was verified to work with is `0.9.0-dev.677+ed174b738`.
1414
1515## Download
1616You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.
src/common.zig+3-1
......@@ -285,7 +285,9 @@ fn add_files_package(pkg_name: []const u8, dirs: []const []const u8, parent_name
285285 defer map.deinit();
286286
287287 for (dirs) |dir_path| {
288 var walker = try std.fs.walkPath(gpa, dir_path);
288 const dir = try std.fs.cwd().openDir(dir_path, .{ .iterate = true });
289 var walker = try dir.walk(gpa);
290 defer walker.deinit();
289291 while (try walker.next()) |p| {
290292 if (p.kind == .Directory) {
291293 continue;
src/util/funcs.zig+3-1
......@@ -142,7 +142,9 @@ pub fn list_contains_gen(comptime T: type, haystack: []const T, needle: T) bool
142142}
143143
144144pub fn file_list(dpath: []const u8, list: *std.ArrayList([]const u8)) !void {
145 var walk = try std.fs.walkPath(gpa, dpath);
145 const dir = try std.fs.cwd().openDir(dpath, .{ .iterate = true });
146 var walk = try dir.walk(gpa);
147 defer walk.deinit();
146148 while (true) {
147149 if (try walk.next()) |entry| {
148150 if (entry.kind != .File) {
src/util/module.zig+2-2
......@@ -61,8 +61,8 @@ pub const Module = struct {
6161 const file_list_2 = &std.ArrayList([]const u8).init(gpa);
6262 defer file_list_2.deinit();
6363 for (file_list_1.items) |item| {
64 const _a = u.trim_prefix(item, cdpath)[1..];
65 const _b = u.trim_prefix(_a, self.clean_path)[1..];
64 const _a = u.trim_prefix(item, cdpath);
65 const _b = u.trim_prefix(_a, self.clean_path);
6666 if (_b[0] == '.') continue;
6767 try file_list_2.append(_b);
6868 }