mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
Clarify comment on sandbox and temp fresh paths
This commit is contained in:
parent
6d57139050
commit
4c6aac8fdf
1 changed files with 5 additions and 3 deletions
|
@ -2370,9 +2370,11 @@ void DerivationGoal::startBuilder()
|
|||
(typically the dependencies of /bin/sh). Throw them
|
||||
out. */
|
||||
for (auto & i : drv->outputs) {
|
||||
/* If the name isn't known a priori (i.e. floating content-addressed
|
||||
derivation), the temporary location we use should be fresh and
|
||||
never in the sandbox in the first place. */
|
||||
/* If the name isn't known a priori (i.e. floating
|
||||
content-addressed derivation), the temporary location we use
|
||||
should be fresh. Freshness means it is impossible that the path
|
||||
is already in the sandbox, so we don't need to worry about
|
||||
removing it. */
|
||||
auto optPath = i.second.pathOpt(worker.store, drv->name);
|
||||
if (optPath)
|
||||
dirsInChroot.erase(worker.store.printStorePath(*optPath));
|
||||
|
|
Loading…
Reference in a new issue