1
1
Fork 0
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:
Robert Hensing 2024-07-13 01:00:06 +02:00
parent d3e49ac881
commit 49d100ba8b
3 changed files with 7 additions and 4 deletions

View file

@ -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);
}