mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 21:46:01 +01:00
Remove InitialOutput::wanted
No derivation goal type has a notion of variable wanted outputs any more. They either want them all, or they just care about a single output, in which case we would just store this information for the one output in question.
This commit is contained in:
parent
316fef35dc
commit
14e355d87d
3 changed files with 3 additions and 9 deletions
|
|
@ -1481,8 +1481,8 @@ SingleDrvOutputs DerivationBuilderImpl::registerOutputs()
|
|||
auto & initialInfo = *initialOutput;
|
||||
|
||||
/* Don't register if already valid, and not checking */
|
||||
initialInfo.wanted = buildMode == bmCheck || !(initialInfo.known && initialInfo.known->isValid());
|
||||
if (!initialInfo.wanted) {
|
||||
bool wanted = buildMode == bmCheck || !(initialInfo.known && initialInfo.known->isValid());
|
||||
if (!wanted) {
|
||||
outputReferencesIfUnregistered.insert_or_assign(
|
||||
outputName, AlreadyRegistered{.path = initialInfo.known->path});
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue