diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 946e66fb432cb121a8d70b4a8c19af43b3a0a7cc..a1916346d15584e4c818e3edbe33e482d85b5125 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Zig uses: goto-bus-stop/setup-zig@v1 with: - version: "0.10.0-dev.2802+54454fd01" + version: "0.10.0-dev.3017+da94227f7" - run: zig version - run: zig env diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 004f99f7770a649b9853532489fa637981f71c40..fcf9cbcff6fc8187e477b2280c8bf56afd8160d0 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Zig uses: goto-bus-stop/setup-zig@v1 with: - version: "0.10.0-dev.2802+54454fd01" + version: "0.10.0-dev.3017+da94227f7" - run: zig version - run: zig env diff --git a/README.md b/README.md index ea77983ac1d8733d9baeeab53b92e1ab7a601a89..e0f0266ffa3b5ddbb43d9821f56d6f6886c88f32 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ A package manager for the Zig programming language. - https://github.com/nektro/zigmod/releases ## Built With -- Zig master (at least `0.10.0-dev.2802+54454fd01`) +- Zig master (at least `0.10.0-dev.3017+da94227f7`) - See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock) ### Build from Source diff --git a/deps.zig b/deps.zig index e371cc2482d1a1f5a4d6ab29775bea8c5642ee8f..04c66ef08b74e66cf227660d0345f024d161f444 100644 --- a/deps.zig +++ b/deps.zig @@ -51,7 +51,7 @@ pub const Package = struct { }; fn checkMinZig(current: std.SemanticVersion, exe: *std.build.LibExeObjStep) void { - const min = std.SemanticVersion.parse("0.10.0-dev.2802+54454fd01") catch return; + const min = std.SemanticVersion.parse("0.10.0-dev.3017+da94227f7") catch return; 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})); } diff --git a/docs/README.md b/docs/README.md index e559cacf45fe78f9159e66c39b182b34b6b061d0..42abc7aff191d1dcedbc0d054488071c69fece4e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed. 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. -The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.2802+54454fd01`. +The earliest Zig release this Zigmod was verified to work with is `0.10.0-dev.3017+da94227f7`. ## Download You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source. diff --git a/src/common.zig b/src/common.zig index 06b33372e3a7ca7b626e61ef32fd1d1502f42d5e..147fd21a8286dceb7611696745f0fe3888fdf172 100644 --- a/src/common.zig +++ b/src/common.zig @@ -299,7 +299,7 @@ pub fn add_files_package(alloc: std.mem.Allocator, cachepath: string, pkg_name: defer map.deinit(); for (dirs) |dir_path| { - const dir = try mdir.openDir(dir_path, .{ .iterate = true }); + const dir = try mdir.openIterableDir(dir_path, .{}); var walker = try dir.walk(alloc); defer walker.deinit(); while (try walker.next()) |p| { diff --git a/src/util/funcs.zig b/src/util/funcs.zig index 42d82cc67d8c87365f0eacc0beb25ebe6e2e8d7e..4a82a2ae11c67f7bf09bf734f8dae92893c3947e 100644 --- a/src/util/funcs.zig +++ b/src/util/funcs.zig @@ -113,7 +113,7 @@ pub fn file_list(alloc: std.mem.Allocator, dpath: string) ![]const string { var list = std.ArrayList(string).init(alloc); defer list.deinit(); - const dir = try std.fs.cwd().openDir(dpath, .{ .iterate = true }); + const dir = try std.fs.cwd().openIterableDir(dpath, .{}); var walk = try dir.walk(alloc); defer walk.deinit(); while (true) { diff --git a/zig.mod b/zig.mod index 0c993f634bb43c938463bf0cb3dfc054441540be..3dbea4c01784a660a5c4d726aa473cc8d56215c5 100644 --- a/zig.mod +++ b/zig.mod @@ -3,7 +3,7 @@ name: zigmod main: src/lib.zig license: MIT description: A package manager for the Zig programming language. -min_zig_version: 0.10.0-dev.2802+54454fd01 +min_zig_version: 0.10.0-dev.3017+da94227f7 dependencies: - src: git https://github.com/yaml/libyaml tag-0.2.5 id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc diff --git a/zigmod.lock b/zigmod.lock index df094c2d25e2f9795ea797ff617189cd39dc0d7f..323c651f9d379a8ec1b167d2cf89778eda94d50c 100644 --- a/zigmod.lock +++ b/zigmod.lock @@ -8,7 +8,7 @@ git https://github.com/truemedian/hzzp commit-bf5aaf224e94561e035a631c3c40fbf02f git https://github.com/nektro/iguanaTLS commit-09d9fe92f329484536dfb2b07cfa8b406151cde4 git https://github.com/MasterQ32/zig-uri commit-e879df3a236869f92298fbe2db3c25e6e84cfd4c git https://github.com/nektro/zig-json commit-a091eaa9f9ae91c3875630ba1983b33ea04971a3 -git https://github.com/nektro/zig-extras commit-b16f583d5af5c86c92237bf56fa8063a5e9961c3 +git https://github.com/nektro/zig-extras commit-01fae956e2f17aa992e717e041a3dd457d440b31 git https://github.com/nektro/zig-range commit-4b2f12808aa09be4b27a163efc424dd4e0415992 git https://github.com/nektro/zig-detect-license commit-de5c285d999eea68b9189b48bb000243fef0a689 git https://github.com/nektro/zig-licenses-text commit-3c07c6e4eb0965dafd0b029c632f823631b3169c