authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-22 12:47:15 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-22 13:01:20 -07:00
loge11a34d09631d4175ca6e42f7f857308e6e2ce1e
tree1aa3c13afd512fddd88d30c6b97aad178c3d0617
parente7288924c44ce5200607309de303e442a6248d6a

update to Zig 0.14.0


27 files changed, 124 insertions(+), 111 deletions(-)

.github/workflows/nightly.yml+1-1
......@@ -27,7 +27,7 @@ jobs:
2727 uses: mlugg/setup-zig@v1
2828 with:
2929 mirror: "http://mirrors.nektro.net/s3cgi"
30 version: "0.13.0"
30 version: "0.14.0"
3131
3232 - run: zig version
3333 - run: zig env
.github/workflows/push.yml+1-1
......@@ -20,7 +20,7 @@ jobs:
2020 uses: mlugg/setup-zig@v1
2121 with:
2222 mirror: "http://mirrors.nektro.net/s3cgi"
23 version: "0.13.0"
23 version: "0.14.0"
2424
2525 - run: zig version
2626 - run: zig env
README.md+11-1
......@@ -1,25 +1,32 @@
11# zigmod
2
23![loc](https://sloc.xyz/github/nektro/zigmod)
34[![license](https://img.shields.io/github/license/nektro/zigmod.svg)](https://github.com/nektro/zigmod/blob/master/LICENSE)
45[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)
56[![release](https://img.shields.io/github/v/release/nektro/zigmod)](https://github.com/nektro/zigmod/releases/latest)
67[![downloads](https://img.shields.io/github/downloads/nektro/zigmod/total.svg)](https://github.com/nektro/zigmod/releases)
8[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
9[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
710
811A package manager for the Zig programming language.
912
1013## Zig
14
1115- https://ziglang.org/
1216- https://github.com/ziglang/zig
1317- https://github.com/ziglang/zig/wiki/Community
1418
1519## Download
20
1621- https://github.com/nektro/zigmod/releases
1722
1823## Built With
19- Zig `0.13.0`
24
25- Zig `0.14.0`
2026- See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock)
2127
2228### Build from Source
29
2330```
2431$ git clone https://github.com/nektro/zigmod
2532$ cd zigmod
......@@ -27,6 +34,7 @@ $ zig build -j1
2734```
2835
2936## Usage
37
3038Check out our [docs](docs/) or the website: https://nektro.github.io/zigmod/.
3139
3240There is now also a tutorial-style getting started guide that goes over various use cases that Zigmod provides and caters to. It is [available here](docs/tutorial.md).
......@@ -34,8 +42,10 @@ There is now also a tutorial-style getting started guide that goes over various
3442A package index for Zigmod packages is also available at https://aquila.red/.
3543
3644## Contact
45
3746- hello@nektro.net
3847- https://twitter.com/nektro
3948
4049## License
50
4151MIT
build.zig+5-2
......@@ -4,6 +4,8 @@ const builtin = @import("builtin");
44const deps = @import("./deps.zig");
55
66pub fn build(b: *std.Build) void {
7 b.reference_trace = 256;
8
79 const target = b.standardTargetOptions(.{});
810 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
911 const use_full_name = b.option(bool, "use-full-name", "") orelse false;
......@@ -18,6 +20,7 @@ pub fn build(b: *std.Build) void {
1820 const tag = b.option(string, "tag", "") orelse "dev";
1921 const strip = b.option(bool, "strip", "Build without debug info.") orelse false;
2022 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
23 _ = &disable_llvm; // macos can't mix the flags rn because it needs llvm but also can't use lld
2124
2225 const exe_options = b.addOptions();
2326 exe.root_module.addImport("build_options", exe_options.createModule());
......@@ -25,8 +28,8 @@ pub fn build(b: *std.Build) void {
2528
2629 deps.addAllTo(exe);
2730 exe.root_module.strip = strip;
28 exe.use_llvm = !disable_llvm;
29 exe.use_lld = !disable_llvm;
31 // exe.use_llvm = !disable_llvm;
32 // exe.use_lld = !disable_llvm;
3033 b.installArtifact(exe);
3134
3235 const run_cmd = b.addRunArtifact(exe);
build_all_zig.sh+1-3
......@@ -3,8 +3,6 @@
33set -e
44
55zig build
6zigmod license > licenses.txt
7zigmod sum
86
97targets="
108x86_64-linux-musl
......@@ -15,8 +13,8 @@ aarch64-macos-none
1513aarch64-windows-gnu
1614riscv64-linux-musl
1715powerpc64le-linux-musl
18mips64-linux-musl
1916"
17# mips64-linux-musl # https://github.com/ziglang/zig/issues/23965
2018
2119for item in $targets
2220do
deps.zig+61-59
......@@ -26,7 +26,7 @@ pub const GitExactStep = struct {
2626 var urlpath = url;
2727 urlpath = trimPrefix(u8, urlpath, "https://");
2828 urlpath = trimPrefix(u8, urlpath, "git://");
29 const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.cache_root.path.?, urlpath, commit });
29 const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.graph.global_cache_root.path.?, urlpath, commit });
3030 flip(std.fs.cwd().access(repopath, .{})) catch return result;
3131
3232 var clonestep = std.Build.Step.Run.create(b, "clone");
......@@ -40,9 +40,9 @@ pub const GitExactStep = struct {
4040 return result;
4141 }
4242
43 fn make(step: *std.Build.Step, prog_node: std.Progress.Node) !void {
43 fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void {
4444 _ = step;
45 _ = prog_node;
45 _ = options;
4646 }
4747};
4848
......@@ -54,25 +54,25 @@ pub fn fetch(exe: *std.Build.Step.Compile) *std.Build.Step {
5454 const root = if (@field(package_data, decl.name).store) |_| b.cache_root.path.? else ".";
5555 if (path.* != null) path.* = b.fmt("{s}/zigmod/deps{s}", .{ root, path.*.? });
5656 }
57 step.dependOn(&GitExactStep.create(b, "https://github.com/marlersoft/zigwin32", "407a4c7b869ee3d10db520fdfae8b9faf9b2adb5").step);
58 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/arqv-ini", "4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a").step);
59 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/iguanaTLS", "c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e").step);
60 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zfetch", "c2883dd57698f223b2cfdccfc7ea357a12e5f741").step);
61 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-ansi", "b0d7878680fff57fd5ed9e7e4d2694acc0b81255").step);
62 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-detect-license", "3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a").step);
63 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-extras", "d4f8a6437cb5068072e4df338af77dde15ad3625").step);
64 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-git", "11805225d52bc28c2edc31fd7a855bd1aa16bc67").step);
65 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-inquirer", "d6005ee08b2f5ce3c4554fa7f91e733f58b1a434").step);
66 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-intrusive-parser", "75a9745d9100b17a9443e6a0051cb140ffbcd0b1").step);
67 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-json", "03b5392e53513a0f90aa5c10219c7caee6383997").step);
68 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-leven", "1c0e475b056ccc6a343187702ee4f3dc415e07cb").step);
69 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses", "d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76").step);
70 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses-text", "f1830fbbd78a31d54d8469a0243cb904e7295e10").step);
71 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-time", "b9a93152af3ba73e5f681f73a67f0d676e2ad433").step);
72 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-tracer", "662774eedca41771f9ebd1ab45cfdc8e4319d4b4").step);
73 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-yaml", "4489a2ed0b3f90e962527eaf9ac9c0203a99094a").step);
57 step.dependOn(&GitExactStep.create(b, "https://github.com/marlersoft/zigwin32", "d21b419d808215e1f82605fdaddc49750bfa3bca").step);
58 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/arqv-ini", "f1a72055884bd5bc0ffb93ba706c9212139d61b9").step);
59 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/iguanaTLS", "b0e810ba8508681935ea7a5af857cc197dcdd279").step);
60 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zfetch", "ec3c02114dec5deff3310b590e69ce0aeb67b95b").step);
61 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-ansi", "18c6c24d692df31a17f78299c4a539c935d1feb1").step);
62 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-detect-license", "9b85f69e9adc28ec70a217c07b86046e331d3485").step);
63 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-extras", "5c4543acadb6c24c05d68f79e4c9d2093457a629").step);
64 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-git", "b206fa9978ef2cc06bab4d307c7ed07f1f3b88af").step);
65 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-inquirer", "3bee7b28a37f3d0898119ef095687467fa907d4b").step);
66 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-intrusive-parser", "eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b").step);
67 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-json", "92dd6f67bbb52f060d5ac20719142b0211854290").step);
68 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-leven", "abcde0e877df670f96671bdca5b81b0e809df0d4").step);
69 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses", "86fc3f6cb4dcc2847832524a3f80d520c7a6577c").step);
70 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses-text", "a4a66621b3cccdf05e62e0152cf2cd43e9072e97").step);
71 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-time", "25165db8e626434ab6eae2cff64ba5e72e4fa062").step);
72 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-tracer", "cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b").step);
73 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-yaml", "10e8df67c534e186d851ed48e8895374d9a454e9").step);
7474 step.dependOn(&GitExactStep.create(b, "https://github.com/truemedian/hzzp", "ab212bd208f0eb54d85861679677c5e3dc9bb543").step);
75 step.dependOn(&GitExactStep.create(b, "https://github.com/ziglibs/known-folders", "1cceeb70e77dec941a4178160ff6c8d05a74de6f").step);
75 step.dependOn(&GitExactStep.create(b, "https://github.com/ziglibs/known-folders", "aa24df42183ad415d10bc0a33e6238c437fc0f59").step);
7676 step.dependOn(&GitExactStep.create(b, "https://github.com/yaml/libyaml", "2c891fc7a770e8ba2fec34fc6b545c672beb37e6").step);
7777 return step;
7878}
......@@ -97,6 +97,8 @@ pub fn addAllTo(exe: *std.Build.Step.Compile) void {
9797 const module = pkg.module(exe, fetch_step);
9898 exe.root_module.addImport(pkg.name, module);
9999 }
100 // clear module memo cache so addAllTo can be called more than once in the same build.zig
101 inline for (comptime std.meta.declarations(package_data)) |decl| @field(package_data, decl.name).module_memo = null;
100102}
101103
102104var link_lib_c = false;
......@@ -121,7 +123,7 @@ pub const Package = struct {
121123 const result = b.createModule(.{});
122124 const dummy_library = b.addStaticLibrary(.{
123125 .name = "dummy",
124 .target = exe.root_module.resolved_target orelse b.host,
126 .target = exe.root_module.resolved_target orelse b.graph.host,
125127 .optimize = exe.root_module.optimize.?,
126128 });
127129 dummy_library.step.dependOn(fetch_step);
......@@ -168,97 +170,97 @@ pub const Package = struct {
168170};
169171
170172fn checkMinZig(current: std.SemanticVersion, exe: *std.Build.Step.Compile) void {
171 const min = std.SemanticVersion.parse("0.13.0") catch return;
173 const min = std.SemanticVersion.parse("0.14.0") catch return;
172174 if (current.order(min).compare(.lt)) @panic(exe.step.owner.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{current, min}));
173175}
174176
175177pub const package_data = struct {
176178 pub var _o6ogpor87xc2 = Package{
177 .store = "/git/github.com/marlersoft/zigwin32/407a4c7b869ee3d10db520fdfae8b9faf9b2adb5",
179 .store = "/git/github.com/marlersoft/zigwin32/d21b419d808215e1f82605fdaddc49750bfa3bca",
178180 .name = "win32",
179 .entry = "/git/github.com/marlersoft/zigwin32/407a4c7b869ee3d10db520fdfae8b9faf9b2adb5/win32.zig",
181 .entry = "/git/github.com/marlersoft/zigwin32/d21b419d808215e1f82605fdaddc49750bfa3bca/win32.zig",
180182 };
181183 pub var _u7sysdckdymi = Package{
182 .store = "/git/github.com/nektro/arqv-ini/4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a",
184 .store = "/git/github.com/nektro/arqv-ini/f1a72055884bd5bc0ffb93ba706c9212139d61b9",
183185 .name = "ini",
184 .entry = "/git/github.com/nektro/arqv-ini/4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a/src/ini.zig",
186 .entry = "/git/github.com/nektro/arqv-ini/f1a72055884bd5bc0ffb93ba706c9212139d61b9/src/ini.zig",
185187 };
186188 pub var _csbnipaad8n7 = Package{
187 .store = "/git/github.com/nektro/iguanaTLS/c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e",
189 .store = "/git/github.com/nektro/iguanaTLS/b0e810ba8508681935ea7a5af857cc197dcdd279",
188190 .name = "iguanaTLS",
189 .entry = "/git/github.com/nektro/iguanaTLS/c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e/src/main.zig",
191 .entry = "/git/github.com/nektro/iguanaTLS/b0e810ba8508681935ea7a5af857cc197dcdd279/src/main.zig",
190192 };
191193 pub var _s84v9o48ucb0 = Package{
192 .store = "/git/github.com/nektro/zig-ansi/b0d7878680fff57fd5ed9e7e4d2694acc0b81255",
194 .store = "/git/github.com/nektro/zig-ansi/18c6c24d692df31a17f78299c4a539c935d1feb1",
193195 .name = "ansi",
194 .entry = "/git/github.com/nektro/zig-ansi/b0d7878680fff57fd5ed9e7e4d2694acc0b81255/src/lib.zig",
196 .entry = "/git/github.com/nektro/zig-ansi/18c6c24d692df31a17f78299c4a539c935d1feb1/src/lib.zig",
195197 };
196198 pub var _f7dubzb7cyqe = Package{
197 .store = "/git/github.com/nektro/zig-extras/d4f8a6437cb5068072e4df338af77dde15ad3625",
199 .store = "/git/github.com/nektro/zig-extras/5c4543acadb6c24c05d68f79e4c9d2093457a629",
198200 .name = "extras",
199 .entry = "/git/github.com/nektro/zig-extras/d4f8a6437cb5068072e4df338af77dde15ad3625/src/lib.zig",
201 .entry = "/git/github.com/nektro/zig-extras/5c4543acadb6c24c05d68f79e4c9d2093457a629/src/lib.zig",
200202 };
201203 pub var _c1xirp1ota5p = Package{
202 .store = "/git/github.com/nektro/zig-inquirer/d6005ee08b2f5ce3c4554fa7f91e733f58b1a434",
204 .store = "/git/github.com/nektro/zig-inquirer/3bee7b28a37f3d0898119ef095687467fa907d4b",
203205 .name = "inquirer",
204 .entry = "/git/github.com/nektro/zig-inquirer/d6005ee08b2f5ce3c4554fa7f91e733f58b1a434/src/lib.zig",
206 .entry = "/git/github.com/nektro/zig-inquirer/3bee7b28a37f3d0898119ef095687467fa907d4b/src/lib.zig",
205207 .deps = &[_]*Package{ &_s84v9o48ucb0 },
206208 };
207209 pub var _7l3oxw6nqqws = Package{
208 .store = "/git/github.com/nektro/zig-intrusive-parser/75a9745d9100b17a9443e6a0051cb140ffbcd0b1",
210 .store = "/git/github.com/nektro/zig-intrusive-parser/eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b",
209211 .name = "intrusive-parser",
210 .entry = "/git/github.com/nektro/zig-intrusive-parser/75a9745d9100b17a9443e6a0051cb140ffbcd0b1/intrusive_parser.zig",
212 .entry = "/git/github.com/nektro/zig-intrusive-parser/eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b/intrusive_parser.zig",
211213 .deps = &[_]*Package{ &_f7dubzb7cyqe },
212214 };
213215 pub var _96h80ezrvj7i = Package{
214 .store = "/git/github.com/nektro/zig-leven/1c0e475b056ccc6a343187702ee4f3dc415e07cb",
216 .store = "/git/github.com/nektro/zig-leven/abcde0e877df670f96671bdca5b81b0e809df0d4",
215217 .name = "leven",
216 .entry = "/git/github.com/nektro/zig-leven/1c0e475b056ccc6a343187702ee4f3dc415e07cb/src/lib.zig",
218 .entry = "/git/github.com/nektro/zig-leven/abcde0e877df670f96671bdca5b81b0e809df0d4/src/lib.zig",
217219 };
218220 pub var _0npcrzfdlrvk = Package{
219 .store = "/git/github.com/nektro/zig-licenses/d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76",
221 .store = "/git/github.com/nektro/zig-licenses/86fc3f6cb4dcc2847832524a3f80d520c7a6577c",
220222 .name = "licenses",
221 .entry = "/git/github.com/nektro/zig-licenses/d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76/src/lib.zig",
223 .entry = "/git/github.com/nektro/zig-licenses/86fc3f6cb4dcc2847832524a3f80d520c7a6577c/src/lib.zig",
222224 };
223225 pub var _pt88y5d80m25 = Package{
224 .store = "/git/github.com/nektro/zig-licenses-text/f1830fbbd78a31d54d8469a0243cb904e7295e10",
226 .store = "/git/github.com/nektro/zig-licenses-text/a4a66621b3cccdf05e62e0152cf2cd43e9072e97",
225227 .name = "licenses-text",
226 .entry = "/git/github.com/nektro/zig-licenses-text/f1830fbbd78a31d54d8469a0243cb904e7295e10/src/lib.zig",
228 .entry = "/git/github.com/nektro/zig-licenses-text/a4a66621b3cccdf05e62e0152cf2cd43e9072e97/src/lib.zig",
227229 };
228230 pub var _2ovav391ivak = Package{
229 .store = "/git/github.com/nektro/zig-detect-license/3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a",
231 .store = "/git/github.com/nektro/zig-detect-license/9b85f69e9adc28ec70a217c07b86046e331d3485",
230232 .name = "detect-license",
231 .entry = "/git/github.com/nektro/zig-detect-license/3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a/src/lib.zig",
233 .entry = "/git/github.com/nektro/zig-detect-license/9b85f69e9adc28ec70a217c07b86046e331d3485/src/lib.zig",
232234 .deps = &[_]*Package{ &_pt88y5d80m25, &_96h80ezrvj7i },
233235 };
234236 pub var _iecwp4b3bsfm = Package{
235 .store = "/git/github.com/nektro/zig-time/b9a93152af3ba73e5f681f73a67f0d676e2ad433",
237 .store = "/git/github.com/nektro/zig-time/25165db8e626434ab6eae2cff64ba5e72e4fa062",
236238 .name = "time",
237 .entry = "/git/github.com/nektro/zig-time/b9a93152af3ba73e5f681f73a67f0d676e2ad433/time.zig",
239 .entry = "/git/github.com/nektro/zig-time/25165db8e626434ab6eae2cff64ba5e72e4fa062/time.zig",
238240 .deps = &[_]*Package{ &_f7dubzb7cyqe },
239241 };
240242 pub var _ede2wygpe1iy = Package{
241 .store = "/git/github.com/nektro/zig-tracer/662774eedca41771f9ebd1ab45cfdc8e4319d4b4",
243 .store = "/git/github.com/nektro/zig-tracer/cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b",
242244 .name = "tracer",
243 .entry = "/git/github.com/nektro/zig-tracer/662774eedca41771f9ebd1ab45cfdc8e4319d4b4/src/mod.zig",
245 .entry = "/git/github.com/nektro/zig-tracer/cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b/src/mod.zig",
244246 .deps = &[_]*Package{ &_f7dubzb7cyqe },
245247 };
246248 pub var _0k64oe2nuzvj = Package{
247 .store = "/git/github.com/nektro/zig-git/11805225d52bc28c2edc31fd7a855bd1aa16bc67",
249 .store = "/git/github.com/nektro/zig-git/b206fa9978ef2cc06bab4d307c7ed07f1f3b88af",
248250 .name = "git",
249 .entry = "/git/github.com/nektro/zig-git/11805225d52bc28c2edc31fd7a855bd1aa16bc67/git.zig",
251 .entry = "/git/github.com/nektro/zig-git/b206fa9978ef2cc06bab4d307c7ed07f1f3b88af/git.zig",
250252 .deps = &[_]*Package{ &_iecwp4b3bsfm, &_f7dubzb7cyqe, &_ede2wygpe1iy },
251253 };
252254 pub var _ocmr9rtohgcc = Package{
253 .store = "/git/github.com/nektro/zig-json/03b5392e53513a0f90aa5c10219c7caee6383997",
255 .store = "/git/github.com/nektro/zig-json/92dd6f67bbb52f060d5ac20719142b0211854290",
254256 .name = "json",
255 .entry = "/git/github.com/nektro/zig-json/03b5392e53513a0f90aa5c10219c7caee6383997/json.zig",
257 .entry = "/git/github.com/nektro/zig-json/92dd6f67bbb52f060d5ac20719142b0211854290/json.zig",
256258 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_ede2wygpe1iy, &_7l3oxw6nqqws },
257259 };
258260 pub var _g982zq6e8wsv = Package{
259 .store = "/git/github.com/nektro/zig-yaml/4489a2ed0b3f90e962527eaf9ac9c0203a99094a",
261 .store = "/git/github.com/nektro/zig-yaml/10e8df67c534e186d851ed48e8895374d9a454e9",
260262 .name = "yaml",
261 .entry = "/git/github.com/nektro/zig-yaml/4489a2ed0b3f90e962527eaf9ac9c0203a99094a/yaml.zig",
263 .entry = "/git/github.com/nektro/zig-yaml/10e8df67c534e186d851ed48e8895374d9a454e9/yaml.zig",
262264 .deps = &[_]*Package{ &_8mdbh0zuneb0, &_f7dubzb7cyqe },
263265 };
264266 pub var _9k24gimke1an = Package{
......@@ -267,15 +269,15 @@ pub const package_data = struct {
267269 .entry = "/git/github.com/truemedian/hzzp/ab212bd208f0eb54d85861679677c5e3dc9bb543/src/main.zig",
268270 };
269271 pub var _ejw82j2ipa0e = Package{
270 .store = "/git/github.com/nektro/zfetch/c2883dd57698f223b2cfdccfc7ea357a12e5f741",
272 .store = "/git/github.com/nektro/zfetch/ec3c02114dec5deff3310b590e69ce0aeb67b95b",
271273 .name = "zfetch",
272 .entry = "/git/github.com/nektro/zfetch/c2883dd57698f223b2cfdccfc7ea357a12e5f741/src/main.zig",
274 .entry = "/git/github.com/nektro/zfetch/ec3c02114dec5deff3310b590e69ce0aeb67b95b/src/main.zig",
273275 .deps = &[_]*Package{ &_9k24gimke1an, &_csbnipaad8n7 },
274276 };
275277 pub var _2ta738wrqbaq = Package{
276 .store = "/git/github.com/ziglibs/known-folders/1cceeb70e77dec941a4178160ff6c8d05a74de6f",
278 .store = "/git/github.com/ziglibs/known-folders/aa24df42183ad415d10bc0a33e6238c437fc0f59",
277279 .name = "known-folders",
278 .entry = "/git/github.com/ziglibs/known-folders/1cceeb70e77dec941a4178160ff6c8d05a74de6f/known-folders.zig",
280 .entry = "/git/github.com/ziglibs/known-folders/aa24df42183ad415d10bc0a33e6238c437fc0f59/known-folders.zig",
279281 };
280282 pub var _89ujp8gq842x = Package{
281283 .name = "zigmod",
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.13.0`.
13The earliest Zig release this Zigmod was verified to work with is `0.14.0`.
1414
1515## Download
1616You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.
src/cmd/aq.zig+1-1
......@@ -19,7 +19,7 @@ pub const commands = struct {
1919
2020pub const server_root = "https://aquila.red";
2121
22pub fn execute(self_name: []const u8, args: [][]u8) !void {
22pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
2323 if (args.len == 0) {
2424 std.debug.print("{s}\n", .{
2525 \\This is a subcommand for use with https://github.com/nektro/aquila instances but has no default behavior on its own aside from showing you this nice help text.
src/cmd/aquila/add.zig+1-1
......@@ -8,7 +8,7 @@ const aq = @import("./../aq.zig");
88//
99//
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {
11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212 _ = self_name;
1313
1414 const pkg_id = args[0];
src/cmd/aquila/install.zig+1-1
......@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");
88const u = @import("./../../util/funcs.zig");
99const common = @import("./../../common.zig");
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {
11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212 _ = self_name;
1313
1414 const home = try knownfolders.getPath(gpa, .home);
src/cmd/aquila/showjson.zig+1-1
......@@ -6,7 +6,7 @@ const aq = @import("./../aq.zig");
66//
77//
88
9pub fn execute(self_name: []const u8, args: [][]u8) !void {
9pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1010 _ = self_name;
1111
1212 const out = std.io.getStdOut().writer();
src/cmd/aquila/update.zig+1-1
......@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");
88const u = @import("./../../util/funcs.zig");
99const common = @import("./../../common.zig");
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {
11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212 _ = self_name;
1313
1414 const home = try knownfolders.getPath(gpa, .home);
src/cmd/ci.zig+1-1
......@@ -8,7 +8,7 @@ const common = @import("./../common.zig");
88// Inspired by:
99// https://docs.npmjs.com/cli/v7/commands/npm-ci
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {
11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212 _ = self_name;
1313 _ = args;
1414
src/cmd/fetch.zig+2-2
......@@ -11,7 +11,7 @@ const license = @import("./license.zig");
1111//
1212//
1313
14pub fn execute(self_name: []const u8, args: [][]u8) !void {
14pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1515 _ = self_name;
1616
1717 const gpa = std.heap.c_allocator;
......@@ -89,7 +89,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
8989 \\ }
9090 \\ const b = exe.step.owner;
9191 \\ const result = b.createModule(.{
92 \\ .target = exe.root_module.resolved_target orelse b.host,
92 \\ .target = exe.root_module.resolved_target,
9393 \\ });
9494 \\ if (self.import) |capture| {
9595 \\ result.root_source_file = capture[1];
src/cmd/generate.zig+5-5
......@@ -9,7 +9,7 @@ const common = @import("./../common.zig");
99//
1010//
1111
12pub fn execute(self_name: []const u8, args: [][]u8) !void {
12pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1313 _ = self_name;
1414 _ = args;
1515
......@@ -67,7 +67,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
6767 \\ var urlpath = url;
6868 \\ urlpath = trimPrefix(u8, urlpath, "https://");
6969 \\ urlpath = trimPrefix(u8, urlpath, "git://");
70 \\ const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.cache_root.path.?, urlpath, commit });
70 \\ const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.graph.global_cache_root.path.?, urlpath, commit });
7171 \\ flip(std.fs.cwd().access(repopath, .{})) catch return result;
7272 \\
7373 \\ var clonestep = std.Build.Step.Run.create(b, "clone");
......@@ -83,9 +83,9 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
8383 \\ return result;
8484 \\ }
8585 \\
86 \\ fn make(step: *std.Build.Step, prog_node: std.Progress.Node) !void {
86 \\ fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void {
8787 \\ _ = step;
88 \\ _ = prog_node;
88 \\ _ = options;
8989 \\ }
9090 \\};
9191 \\
......@@ -159,7 +159,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
159159 \\ const result = b.createModule(.{});
160160 \\ const dummy_library = b.addStaticLibrary(.{
161161 \\ .name = "dummy",
162 \\ .target = exe.root_module.resolved_target orelse b.host,
162 \\ .target = exe.root_module.resolved_target orelse b.graph.host,
163163 \\ .optimize = exe.root_module.optimize.?,
164164 \\ });
165165 \\ dummy_library.step.dependOn(fetch_step);
src/cmd/init.zig+1-1
......@@ -13,7 +13,7 @@ const u = @import("./../util/funcs.zig");
1313//
1414//
1515
16pub fn execute(self_name: []const u8, args: [][]u8) !void {
16pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1717 _ = self_name;
1818
1919 std.debug.print("This utility will walk you through creating a zigmod.yml file.\n", .{});
src/cmd/license.zig+1-1
......@@ -15,7 +15,7 @@ const Map = std.StringArrayHashMap(*List);
1515// Inspired by:
1616// https://github.com/onur/cargo-license
1717
18pub fn execute(self_name: []const u8, args: [][]u8) !void {
18pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1919 _ = self_name;
2020 _ = args;
2121
src/cmd/sum.zig+1-1
......@@ -8,7 +8,7 @@ const common = @import("./../common.zig");
88//
99//
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {
11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1212 _ = self_name;
1313 _ = args;
1414
src/cmd/version.zig+1-1
......@@ -7,7 +7,7 @@ const u = @import("./../util/funcs.zig");
77//
88//
99
10pub fn execute(self_name: []const u8, args: [][]u8) !void {
10pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1111 _ = self_name;
1212 _ = args;
1313
src/cmd/zpm.zig+1-1
......@@ -30,7 +30,7 @@ pub const Package = struct {
3030 links: []const string,
3131};
3232
33pub fn execute(self_name: []const u8, args: [][]u8) !void {
33pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
3434 if (args.len == 0) {
3535 std.debug.print("{s}\n", .{
3636 \\This is a subcommand for use with https://github.com/zigtools/zpm-server instances but has no default behavior on its own aside from showing you this nice help text.
src/cmd/zpm/add.zig+1-1
......@@ -10,7 +10,7 @@ const zpm = @import("./../zpm.zig");
1010//
1111//
1212
13pub fn execute(self_name: []const u8, args: [][]u8) !void {
13pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1414 _ = self_name;
1515
1616 const url = try std.mem.join(gpa, "/", &.{ zpm.server_root, "packages" });
src/cmd/zpm/search.zig+1-1
......@@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig");
77//
88//
99
10pub fn execute(self_name: []const u8, args: [][]u8) !void {
10pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1111 _ = self_name;
1212 _ = args;
1313
src/cmd/zpm/showjson.zig+1-1
......@@ -6,7 +6,7 @@ const zpm = @import("./../zpm.zig");
66//
77//
88
9pub fn execute(self_name: []const u8, args: [][]u8) !void {
9pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1010 _ = self_name;
1111
1212 const out = std.io.getStdOut().writer();
src/cmd/zpm/tags.zig+1-1
......@@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig");
77//
88//
99
10pub fn execute(self_name: []const u8, args: [][]u8) !void {
10pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
1111 _ = self_name;
1212 _ = args;
1313
src/util/funcs.zig+2-2
......@@ -27,7 +27,7 @@ pub fn fail(comptime fmt: string, args: anytype) noreturn {
2727 unreachable;
2828}
2929
30pub fn try_index(comptime T: type, array: []T, n: usize, def: T) T {
30pub fn try_index(comptime T: type, array: []const T, n: usize, def: T) T {
3131 if (array.len <= n) {
3232 return def;
3333 }
......@@ -87,7 +87,7 @@ const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";
8787
8888pub fn random_string(comptime len: usize) [len]u8 {
8989 const now: u64 = @intCast(std.time.nanoTimestamp());
90 var rand = std.rand.DefaultPrng.init(now);
90 var rand = std.Random.DefaultPrng.init(now);
9191 var r = rand.random();
9292 var buf: [len]u8 = undefined;
9393 var i: usize = 0;
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.13.0
6min_zig_version: 0.14.0
77dependencies:
88 - src: git https://github.com/nektro/zig-yaml
99 - src: git https://github.com/nektro/zig-ansi
zigmod.lock+18-18
......@@ -1,21 +1,21 @@
112
2git https://github.com/marlersoft/zigwin32 commit-407a4c7b869ee3d10db520fdfae8b9faf9b2adb5
3git https://github.com/nektro/arqv-ini commit-4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a
4git https://github.com/nektro/iguanaTLS commit-c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e
5git https://github.com/nektro/zfetch commit-c2883dd57698f223b2cfdccfc7ea357a12e5f741
6git https://github.com/nektro/zig-ansi commit-b0d7878680fff57fd5ed9e7e4d2694acc0b81255
7git https://github.com/nektro/zig-detect-license commit-3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a
8git https://github.com/nektro/zig-extras commit-d4f8a6437cb5068072e4df338af77dde15ad3625
9git https://github.com/nektro/zig-git commit-11805225d52bc28c2edc31fd7a855bd1aa16bc67
10git https://github.com/nektro/zig-inquirer commit-d6005ee08b2f5ce3c4554fa7f91e733f58b1a434
11git https://github.com/nektro/zig-intrusive-parser commit-75a9745d9100b17a9443e6a0051cb140ffbcd0b1
12git https://github.com/nektro/zig-json commit-03b5392e53513a0f90aa5c10219c7caee6383997
13git https://github.com/nektro/zig-leven commit-1c0e475b056ccc6a343187702ee4f3dc415e07cb
14git https://github.com/nektro/zig-licenses commit-d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76
15git https://github.com/nektro/zig-licenses-text commit-f1830fbbd78a31d54d8469a0243cb904e7295e10
16git https://github.com/nektro/zig-time commit-b9a93152af3ba73e5f681f73a67f0d676e2ad433
17git https://github.com/nektro/zig-tracer commit-662774eedca41771f9ebd1ab45cfdc8e4319d4b4
18git https://github.com/nektro/zig-yaml commit-4489a2ed0b3f90e962527eaf9ac9c0203a99094a
2git https://github.com/marlersoft/zigwin32 commit-d21b419d808215e1f82605fdaddc49750bfa3bca
3git https://github.com/nektro/arqv-ini commit-f1a72055884bd5bc0ffb93ba706c9212139d61b9
4git https://github.com/nektro/iguanaTLS commit-b0e810ba8508681935ea7a5af857cc197dcdd279
5git https://github.com/nektro/zfetch commit-ec3c02114dec5deff3310b590e69ce0aeb67b95b
6git https://github.com/nektro/zig-ansi commit-18c6c24d692df31a17f78299c4a539c935d1feb1
7git https://github.com/nektro/zig-detect-license commit-9b85f69e9adc28ec70a217c07b86046e331d3485
8git https://github.com/nektro/zig-extras commit-5c4543acadb6c24c05d68f79e4c9d2093457a629
9git https://github.com/nektro/zig-git commit-b206fa9978ef2cc06bab4d307c7ed07f1f3b88af
10git https://github.com/nektro/zig-inquirer commit-3bee7b28a37f3d0898119ef095687467fa907d4b
11git https://github.com/nektro/zig-intrusive-parser commit-eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b
12git https://github.com/nektro/zig-json commit-92dd6f67bbb52f060d5ac20719142b0211854290
13git https://github.com/nektro/zig-leven commit-abcde0e877df670f96671bdca5b81b0e809df0d4
14git https://github.com/nektro/zig-licenses commit-86fc3f6cb4dcc2847832524a3f80d520c7a6577c
15git https://github.com/nektro/zig-licenses-text commit-a4a66621b3cccdf05e62e0152cf2cd43e9072e97
16git https://github.com/nektro/zig-time commit-25165db8e626434ab6eae2cff64ba5e72e4fa062
17git https://github.com/nektro/zig-tracer commit-cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b
18git https://github.com/nektro/zig-yaml commit-10e8df67c534e186d851ed48e8895374d9a454e9
1919git https://github.com/truemedian/hzzp commit-ab212bd208f0eb54d85861679677c5e3dc9bb543
20git https://github.com/ziglibs/known-folders commit-1cceeb70e77dec941a4178160ff6c8d05a74de6f
20git https://github.com/ziglibs/known-folders commit-aa24df42183ad415d10bc0a33e6238c437fc0f59
2121git https://github.com/yaml/libyaml tag-0.2.5