| author | |
| committer | |
| log | 8dd11fb82ad5f8befd8a6dd91f2aa9321a18d956 |
| tree | 3539a38835b11465c9b319d58140a2e1d9845645 |
| parent | 0447b40cb611060090f8f9c347d01711fc31b6e3 |
2 files changed, 2 insertions(+), 3 deletions(-)
src/cmd_fetch.zig+1-2| ... | @@ -10,8 +10,7 @@ const u = @import("./util/index.zig"); | ... | @@ -10,8 +10,7 @@ const u = @import("./util/index.zig"); |
| 10 | 10 | ||
| 11 | pub fn execute(args: [][]u8) !void { | 11 | pub fn execute(args: [][]u8) !void { |
| 12 | // | 12 | // |
| 13 | const home = try known_folders.getPath(gpa, .home); | 13 | const dir = try fs.path.join(gpa, &[_][]const u8{".zigmod", "deps"}); |
| 14 | const dir = try fs.path.join(gpa, &[_][]const u8{home.?, ".cache", "zigmod", "deps"}); | ||
| 15 | 14 | ||
| 16 | const top_module = try fetch_deps(dir, "zig.mod"); | 15 | const top_module = try fetch_deps(dir, "zig.mod"); |
| 17 | 16 |
src/util/funcs.zig+1-1| ... | @@ -135,7 +135,7 @@ pub fn list_contains(haystack: [][]const u8, needle: []const u8) bool { | ... | @@ -135,7 +135,7 @@ pub fn list_contains(haystack: [][]const u8, needle: []const u8) bool { |
| 135 | 135 | ||
| 136 | pub fn open_dir_absolute(dpath: []const u8) !std.fs.Dir { | 136 | pub fn open_dir_absolute(dpath: []const u8) !std.fs.Dir { |
| 137 | return std.fs.Dir{ | 137 | return std.fs.Dir{ |
| 138 | .fd = (try std.fs.openFileAbsolute(dpath, .{})).handle, | 138 | .fd = (try std.fs.cwd().openFile(dpath, .{})).handle, |
| 139 | }; | 139 | }; |
| 140 | } | 140 | } |
| 141 | 141 |