| author | |
| committer | |
| log | 4ebb7c89cd13be71cec8c4789710292ce4fbf492 |
| tree | b6774adae43d861ad20745860a6a2d4a91792723 |
| parent | 1ff771e82c1aad0bbf441961410b71f0c19d6ab0 |
2 files changed, 2 insertions(+), 2 deletions(-)
src/common.zig+1-1| ... | ... | @@ -85,7 +85,7 @@ pub fn collect_deps(dir: []const u8, mpath: []const u8, comptime options: Collec |
| 85 | 85 | } |
| 86 | 86 | const file_path = try std.fs.path.join(gpa, &.{pv, file_name}); |
| 87 | 87 | try d.type.pull(d.path, pv); |
| 88 | if (try u.validate_hash(try u.last(try u.split(pv, "/")), file_path)) { | |
| 88 | if (try u.validate_hash(d.version, file_path)) { | |
| 89 | 89 | try std.fs.cwd().deleteFile(file_path); |
| 90 | 90 | moddir = pv; |
| 91 | 91 | break :blk; |
src/util/dep.zig+1-1| ... | ... | @@ -37,7 +37,7 @@ pub const Dep = struct { |
| 37 | 37 | |
| 38 | 38 | pub fn clean_path_v(self: Dep) ![]const u8 { |
| 39 | 39 | if (self.type == .http and self.version.len > 0) { |
| 40 | return std.mem.join(gpa, "/", &.{"v", @tagName(self.type), self.version}); | |
| 40 | return std.mem.join(gpa, "/", &.{"v", @tagName(self.type), self.version[0..20]}); | |
| 41 | 41 | } |
| 42 | 42 | return std.mem.join(gpa, "/", &.{"v", try self.clean_path(), self.version}); |
| 43 | 43 | } |