authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-20 13:36:12 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-20 13:36:12 -08:00
log2aa95da7dbd0f9b23fb6e99935882b02394016b2
treef4f7072861e0296946eac9a30fcf890fbd1bd8fa
parentc5ef44d0423dedd88992dae7acc152fe6f3de7b1

put /deps and /v at top level of module cache


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

src/cmd_fetch.zig+2-2
......@@ -23,7 +23,7 @@ pub fn execute(args: [][]u8) !void {
2323 try w.print("const build = std.build;\n", .{});
2424 try w.print("\n", .{});
2525 try w.print("const home = \"{}\";\n", .{home});
26 try w.print("const cache = home ++ \"/.cache/zigmod/deps\";\n", .{});
26 try w.print("const cache = home ++ \"/.cache/zigmod\";\n", .{});
2727 try w.print("\n", .{});
2828 try w.print("{}\n", .{
2929 \\pub fn addAllTo(exe: *build.LibExeObjStep) void {
......@@ -63,7 +63,7 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {
6363 const m = try u.ModFile.init(gpa, mpath);
6464 const moduledeps = &std.ArrayList(u.Module).init(gpa);
6565 for (m.deps) |d| {
66 const p = try u.concat(&[_][]const u8{dir, "/", try d.clean_path()});
66 const p = try u.concat(&[_][]const u8{dir, "/deps/", try d.clean_path()});
6767 const pv = try u.concat(&[_][]const u8{dir, "/v/", try d.clean_path(), "/", d.version});
6868 u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path});
6969 switch (d.type) {