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:...@@ -15,7 +15,7 @@ jobs:
15 - run: git submodule update --init --recursive15 - run: git submodule update --init --recursive
1616
17 - run: apt -y install xz-utils jq17 - run: apt -y install xz-utils jq
18 - run: ./download_zig.sh 0.8.018 - run: ./download_zig.sh 0.9.0-dev.133+ff79b87fa
19 - run: zig version19 - run: zig version
20 - run: zig env20 - run: zig env
21 - run: zig build -Dbootstrap21 - run: zig build -Dbootstrap
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/releases17- https://github.com/nektro/zigmod/releases
1818
19## Built With19## Built With
20- Zig master `0.8.0`20- Zig master `0.9.0-dev.133+ff79b87fa`
2121
22### Build from Source22### Build from Source
23Initially,23Initially,
docs/README.md+1-1
...@@ -8,7 +8,7 @@ You can learn more about Zig here:...@@ -8,7 +8,7 @@ You can learn more about Zig here:
88
9The rest of this documentation will assume you already have Zig installed.9The 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
13## Download13## Download
14You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.14You 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...@@ -220,7 +220,7 @@ fn print_pkg_data_to(w: std.fs.File.Writer, notdone: *std.ArrayList(u.Module), d
220 while (notdone.items.len > 0) {220 while (notdone.items.len > 0) {
221 for (notdone.items) |mod, i| {221 for (notdone.items) |mod, i| {
222 if (contains_all(mod.deps, done.items)) {222 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 });
224 for (mod.deps) |d| {224 for (mod.deps) |d| {
225 if (d.main.len > 0) {225 if (d.main.len > 0) {
226 try w.print(" _{s},", .{d.id[0..12]});226 try w.print(" _{s},", .{d.id[0..12]});