From cc3b15c92797ce6f9e7bf3d7bf4aff1559b3e48a Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 15 Jun 2021 16:56:06 -0300 Subject: [PATCH] cmd/fetch- use FileSource --- src/cmd/fetch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index 077838289c2fc258e1d6f2ef890b89e6fbfcdad9..6747721af127517811b66c31424b9cf7b886062d 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -220,7 +220,7 @@ fn print_pkg_data_to(w: std.fs.File.Writer, notdone: *std.ArrayList(u.Module), d while (notdone.items.len > 0) { for (notdone.items) |mod, i| { if (contains_all(mod.deps, done.items)) { - 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 }); + 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 }); for (mod.deps) |d| { if (d.main.len > 0) { try w.print(" _{s},", .{d.id[0..12]}); -- 2.54.0