authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2021-06-17 09:58:51 -07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-06-17 09:58:51 -07:00
log19e267c9f1fb4af1bcfc13ce3d55716bd9e7d28f
tree714d566a22a4eb9edc150674c303756155c86bae
parentfcd70831ae5913e52ccc87149bcc99859eb0e81d
parent3551b51ec3b81a4351cc5814566b9d3ddd92954d
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #20 from lun-4/add-filesources

cmd/fetch- use FileSource

4 files changed, 4 insertions(+), 4 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.8.0
18 - run: ./download_zig.sh 0.9.0-dev.133+ff79b87fa
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.8.0`
20- Zig master `0.9.0-dev.133+ff79b87fa`
2121
2222### Build from Source
2323Initially,
docs/README.md+1-1
......@@ -8,7 +8,7 @@ You can learn more about Zig here:
88
99The rest of this documentation will assume you already have Zig installed.
1010
11As 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 most recent release Zigmod was verified to work with is `0.8.0`.
11As 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 most recent release Zigmod was verified to work with is `0.9.0-dev.133+ff79b87fa`.
1212
1313## Download
1414You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.
src/cmd/fetch.zig+1-1
......@@ -220,7 +220,7 @@ fn print_pkg_data_to(w: std.fs.File.Writer, notdone: *std.ArrayList(u.Module), d
220220 while (notdone.items.len > 0) {
221221 for (notdone.items) |mod, i| {
222222 if (contains_all(mod.deps, done.items)) {
223 try w.print(" pub const _{s} = std.build.Pkg{{ .name = \"{s}\", .path = cache ++ \"/{}/{s}\", .dependencies = &[_]std.build.Pkg{{", .{ mod.id[0..12], mod.name, std.zig.fmtEscapes(mod.clean_path), mod.main });
223 try w.print(" pub const _{s} = std.build.Pkg{{ .name = \"{s}\", .path = std.build.FileSource{{ .path = cache ++ \"/{}/{s}\" }}, .dependencies = &[_]std.build.Pkg{{", .{ mod.id[0..12], mod.name, std.zig.fmtEscapes(mod.clean_path), mod.main });
224224 for (mod.deps) |d| {
225225 if (d.main.len > 0) {
226226 try w.print(" _{s},", .{d.id[0..12]});