1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

Improve OutputsSpec slightly

A few little changes preparing for the rest.
This commit is contained in:
John Ericson 2023-01-11 01:51:14 -05:00
parent a3ba80357d
commit a8f45b5e5a
7 changed files with 46 additions and 32 deletions

View file

@ -244,7 +244,7 @@ std::tuple<FlakeRef, std::string, OutputsSpec> parseFlakeRefWithFragmentAndOutpu
bool allowMissing,
bool isFlake)
{
auto [prefix, outputsSpec] = parseOutputsSpec(url);
auto [prefix, outputsSpec] = OutputsSpec::parse(url);
auto [flakeRef, fragment] = parseFlakeRefWithFragment(prefix, baseDir, allowMissing, isFlake);
return {std::move(flakeRef), fragment, outputsSpec};
}