mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
parent
b2acf4ab97
commit
d944cb7f58
7 changed files with 11 additions and 11 deletions
|
@ -175,7 +175,7 @@ std::pair<FlakeRef, std::string> parsePathFlakeRefWithFragment(
|
|||
}
|
||||
|
||||
} else {
|
||||
if (!hasPrefix(path, "/"))
|
||||
if (!isAbsolute(path))
|
||||
throw BadURL("flake reference '%s' is not an absolute path", url);
|
||||
path = canonPath(path + "/" + getOr(query, "dir", ""));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue