mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Don't absolutize 'git+file:' in parseURLFlakeRef()
https://github.com/NixOS/nix/issues/12273#issuecomment-2596069519
This commit is contained in:
parent
40bb5ec675
commit
938f0f4fd9
2 changed files with 1 additions and 2 deletions
|
@ -233,7 +233,7 @@ std::optional<std::pair<FlakeRef, std::string>> parseURLFlakeRef(
|
|||
try {
|
||||
auto parsed = parseURL(url);
|
||||
if (baseDir
|
||||
&& (parsed.scheme == "path" || parsed.scheme == "git+file")
|
||||
&& parsed.scheme == "path"
|
||||
&& !isAbsolute(parsed.path))
|
||||
parsed.path = absPath(parsed.path, *baseDir);
|
||||
return fromParsedURL(fetchSettings, std::move(parsed), isFlake);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue