Improve OutputsSpec slightly

A few little changes preparing for the rest.
This commit is contained in:
John Ericson
2023-01-11 18:54:50 -05:00
parent a3ba80357d
commit a8f45b5e5a
7 changed files with 46 additions and 32 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include "globals.hh"
#include "installables.hh"
#include "outputs-spec.hh"
#include "util.hh"
#include "command.hh"
#include "attr-path.hh"
@@ -796,7 +797,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
}
for (auto & s : ss) {
auto [prefix, outputsSpec] = parseOutputsSpec(s);
auto [prefix, outputsSpec] = OutputsSpec::parse(s);
result.push_back(
std::make_shared<InstallableAttrPath>(
state, *this, vFile,