mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
parent
b2acf4ab97
commit
d944cb7f58
7 changed files with 11 additions and 11 deletions
|
|
@ -96,7 +96,7 @@ struct PathInputScheme : InputScheme
|
|||
std::optional<std::string> isRelative(const Input & input) const
|
||||
{
|
||||
auto path = getStrAttr(input.attrs, "path");
|
||||
if (hasPrefix(path, "/"))
|
||||
if (isAbsolute(path))
|
||||
return std::nullopt;
|
||||
else
|
||||
return path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue