fn findPrefixPath(cache: *const Cache, path: Path) !PrefixedPath 73
74
75
76
77
78
79
80fn findPrefixPath(cache: *const Cache, path: Path) !PrefixedPath {
const gpa = cache.gpa;
const resolved_path = try std.fs.path.resolve(gpa, &.{
cache.cwd, path.root_dir.path orelse ".", path.subPathOrDot(),
});
errdefer gpa.free(resolved_path);
return findPrefixResolved(cache, resolved_path);
}