Ensure that the ca-derivations bit is set when copying realisations

This should already hold, but better ensure it for future-proof-nees
This commit is contained in:
regnat 2021-02-19 18:02:26 +01:00
parent f67ff1f575
commit 3b76f8f252

View file

@ -786,6 +786,7 @@ void copyStorePath(ref<Store> srcStore, ref<Store> dstStore,
std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStore, const RealisedPath::Set & paths, std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStore, const RealisedPath::Set & paths,
RepairFlag repair, CheckSigsFlag checkSigs, SubstituteFlag substitute) RepairFlag repair, CheckSigsFlag checkSigs, SubstituteFlag substitute)
{ {
settings.requireExperimentalFeature("ca-derivations");
StorePathSet storePaths; StorePathSet storePaths;
std::set<Realisation> realisations; std::set<Realisation> realisations;
for (auto path : paths) { for (auto path : paths) {