build-remote: Always register the missing outputs

It's possible that all the paths are already there, but just not
associated to the current drv output
This commit is contained in:
regnat 2021-01-26 09:36:24 +01:00
parent 8c385d16ee
commit 69666b951e

View file

@ -311,6 +311,13 @@ connected:
localStore->locksHeld.insert(store->printStorePath(path)); /* FIXME: ugly */
copyPaths(ref<Store>(sshStore), store, missingPaths, NoRepair, NoCheckSigs, NoSubstitute);
}
// XXX: Should e done as part of `copyPaths`
for (auto & realisation : missingRealisations) {
// Should hold, because if the feature isn't enabled the set
// of missing realisations should be empty
settings.requireExperimentalFeature("ca-derivations");
store->registerDrvOutput(realisation);
}
return 0;
}