diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:15:22 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:15:22 +0200 |
commit | 972405edf5ff0d90185fb4021993c4a942787578 (patch) | |
tree | cb613a75dda4d6f235fe86e0a732d7a25e9c0565 /src/libexpr | |
parent | cfaad7168e7ac72d4b2024df2e093b86b45b70fc (diff) |
Allow access to path copied to the store
Fixes https://github.com/NixOS/nix/pull/5163#issuecomment-931733912.
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/eval.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ce266f522..2483132f6 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -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); |