| ... | @@ -257,8 +257,9 @@ pub fn run(f: *Fetch) RunError!void { | ... | @@ -257,8 +257,9 @@ pub fn run(f: *Fetch) RunError!void { |
| 257 | f.hash_tok, | 257 | f.hash_tok, |
| 258 | try eb.addString("path-based dependencies are not hashed"), | 258 | try eb.addString("path-based dependencies are not hashed"), |
| 259 | ); | 259 | ); |
| 260 | if (std.mem.startsWith(u8, pkg_root.sub_path, "../") or | 260 | if ((std.mem.startsWith(u8, pkg_root.sub_path, "../") or |
| 261 | std.mem.eql(u8, pkg_root.sub_path, "..")) | 261 | std.mem.eql(u8, pkg_root.sub_path, "..")) and |
| | 262 | pkg_root.root_dir.eql(cache_root)) |
| 262 | { | 263 | { |
| 263 | return f.fail( | 264 | return f.fail( |
| 264 | f.location_tok, | 265 | f.location_tok, |