authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-28 19:15:12 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-28 19:15:12 -08:00
log377b65529386eec23ab438e6d106b004b4d8c553
tree05af0cc206aa4808a5bb37974b32c994b5818cdf
parent58d84ba634f55ea77398fd8a80aae05bd3eaa8a7

fixes #5


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

src/cmd_fetch.zig+1-3
......@@ -23,8 +23,7 @@ pub fn execute(args: [][]u8) !void {
2323 try w.print("const std = @import(\"std\");\n", .{});
2424 try w.print("const build = std.build;\n", .{});
2525 try w.print("\n", .{});
26 try w.print("const home = \"{}\";\n", .{home});
27 try w.print("const cache = home ++ \"/.cache/zigmod/deps\";\n", .{});
26 try w.print("const cache = \"{Z}\";\n", .{dir});
2827 try w.print("\n", .{});
2928 try w.print("{}\n", .{
3029 \\pub fn addAllTo(exe: *build.LibExeObjStep) void {
......@@ -73,7 +72,6 @@ pub fn execute(args: [][]u8) !void {
7372 try w.print("{}\n", .{"pub const system_libs = &[_][]const u8{"});
7473 try print_sys_libs_to(w, top_module, &std.ArrayList([]const u8).init(gpa), &std.ArrayList([]const u8).init(gpa));
7574 try w.print("{};\n", .{"}"});
76
7775}
7876
7977fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {