authorgravatar for git@l4.pmLuna <git@l4.pm> 2021-06-15 16:56:06 -03:00
committergravatar for git@l4.pmLuna <git@l4.pm> 2021-06-15 16:56:06 -03:00
logcc3b15c92797ce6f9e7bf3d7bf4aff1559b3e48a
tree75222205564a49b792143279da2e45bd46e27d0d
parentfcd70831ae5913e52ccc87149bcc99859eb0e81d

cmd/fetch- use FileSource


1 files changed, 1 insertions(+), 1 deletions(-)

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]});