pub fn depDigest(pkg_root: Path, cache_root: Directory, dep: Manifest.Dependency) ?Package.Hash
pub fn depDigest(pkg_root: Path, cache_root: Directory, dep: Manifest.Dependency) ?Package.Hash { if (dep.hash) |h| return .fromSlice(h); switch (dep.location) { .url => return null, .path => |rel_path| { var buf: [fs.max_path_bytes]u8 = undefined; var fba = std.heap.FixedBufferAllocator.init(&buf); const new_root = pkg_root.resolvePosix(fba.allocator(), rel_path) catch return null; return relativePathDigest(new_root, cache_root); }, } }