mirror of
https://github.com/NixOS/nix.git
synced 2025-12-06 00:51:00 +01:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: output name empty not feasible
I don't think it's completely impossible, but I can't construct one easily as derivationStrict seems to (re)tokenize the outputs attribute, dropping the empty output. It's not a scenario we have to account for here.
This commit is contained in:
parent
d3e49ac881
commit
49d100ba8b
3 changed files with 7 additions and 4 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "regex-combinators.hh"
|
||||
#include "outputs-spec.hh"
|
||||
#include "path-regex.hh"
|
||||
#include "strings-inline.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
@ -83,7 +84,7 @@ std::string OutputsSpec::to_string() const
|
|||
return "*";
|
||||
},
|
||||
[&](const OutputsSpec::Names & outputNames) -> std::string {
|
||||
return dropEmptyInitThenConcatStringsSep(",", outputNames);
|
||||
return concatStringsSep(",", outputNames);
|
||||
},
|
||||
}, raw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue