Allow access to path copied to the store

Fixes https://github.com/NixOS/nix/pull/5163#issuecomment-931733912.
This commit is contained in:
Eelco Dolstra 2021-10-07 12:15:22 +02:00
parent cfaad7168e
commit 972405edf5

View file

@ -1897,6 +1897,7 @@ string EvalState::copyPathToStore(PathSet & context, const Path & path)
dstPath = store->printStorePath(p);
srcToStore.insert_or_assign(path, std::move(p));
printMsg(lvlChatty, "copied source '%1%' -> '%2%'", path, dstPath);
allowPath(dstPath);
}
context.insert(dstPath);