| ... | ... | @@ -14,7 +14,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 14 | 14 | if (args.len < 2) u.fail("usage: zigmod install [git|hg|http] [url]", .{}); |
| 15 | 15 | |
| 16 | 16 | const homepath = try knownfolders.getPath(gpa, .home) orelse u.fail("failed to read HOME", .{}); |
| 17 | | const cache = try knownfolders.getPath(gpa, .cache); |
| 17 | const cache = try knownfolders.getPath(gpa, .cache) orelse u.fail("failed to read XDG_CACHE_HOME", .{}); |
| 18 | 18 | const datapath = try knownfolders.getPath(gpa, .data) orelse u.fail("failed to read XDG_DATA_HOME", .{}); |
| 19 | 19 | |
| 20 | 20 | const RemoteType = enum { |
| ... | ... | @@ -47,7 +47,7 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 47 | 47 | .for_build = false, |
| 48 | 48 | }; |
| 49 | 49 | const clean_path = try dep.clean_path(gpa); |
| 50 | | const cachepath = try std.fs.path.join(gpa, &.{ cache.?, "zigmod", "deps" }); |
| 50 | const cachepath = try std.fs.path.join(gpa, &.{ cache, "zigmod", "deps" }); |
| 51 | 51 | const modpath = try std.fs.path.join(gpa, &.{ cachepath, clean_path }); |
| 52 | 52 | std.log.debug("modpath: {s}", .{modpath}); |
| 53 | 53 | |