mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
Remove parent hackery from the path fetcher
Relative paths of subflakes are now handled in lockFlake().
This commit is contained in:
parent
3d27ce36d0
commit
f97489e7ab
3 changed files with 2 additions and 24 deletions
|
@ -204,11 +204,8 @@ std::pair<FlakeRef, std::string> parseFlakeRefWithFragment(
|
|||
std::string fragment;
|
||||
std::swap(fragment, parsedURL.fragment);
|
||||
|
||||
auto input = Input::fromURL(parsedURL);
|
||||
input.parent = baseDir;
|
||||
|
||||
return std::make_pair(
|
||||
FlakeRef(std::move(input), getOr(parsedURL.query, "dir", "")),
|
||||
FlakeRef(Input::fromURL(parsedURL), getOr(parsedURL.query, "dir", "")),
|
||||
fragment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue