| ... | @@ -31,6 +31,7 @@ pub const DepType = enum { | ... | @@ -31,6 +31,7 @@ pub const DepType = enum { |
| 31 | // ipfs, // https://www.ipfs.com/ | 31 | // ipfs, // https://www.ipfs.com/ |
| 32 | // hypercore, // https://hypercore-protocol.org/ | 32 | // hypercore, // https://hypercore-protocol.org/ |
| 33 | | 33 | |
| | 34 | // zig fmt: on |
| 34 | pub fn pull(self: DepType, rpath: []const u8, dpath: []const u8) !void { | 35 | pub fn pull(self: DepType, rpath: []const u8, dpath: []const u8) !void { |
| 35 | switch (self) { | 36 | switch (self) { |
| 36 | .local => {}, | 37 | .local => {}, |
| ... | @@ -55,6 +56,7 @@ pub const DepType = enum { | ... | @@ -55,6 +56,7 @@ pub const DepType = enum { |
| 55 | } | 56 | } |
| 56 | } | 57 | } |
| 57 | | 58 | |
| | 59 | // zig fmt: on |
| 58 | pub fn update(self: DepType, dpath: []const u8, rpath: []const u8) !void { | 60 | pub fn update(self: DepType, dpath: []const u8, rpath: []const u8) !void { |
| 59 | _ = rpath; | 61 | _ = rpath; |
| 60 | | 62 | |
| ... | @@ -74,6 +76,7 @@ pub const DepType = enum { | ... | @@ -74,6 +76,7 @@ pub const DepType = enum { |
| 74 | } | 76 | } |
| 75 | } | 77 | } |
| 76 | | 78 | |
| | 79 | // zig fmt: on |
| 77 | pub fn exact_version(self: DepType, mpath: []const u8) ![]const u8 { | 80 | pub fn exact_version(self: DepType, mpath: []const u8) ![]const u8 { |
| 78 | var mdir = try std.fs.cwd().openDir(mpath, .{}); | 81 | var mdir = try std.fs.cwd().openDir(mpath, .{}); |
| 79 | defer mdir.close(); | 82 | defer mdir.close(); |