mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
'target' points to 'source'
This commit is contained in:
parent
df11e75d0e
commit
19fd6e585d
1 changed files with 1 additions and 1 deletions
|
@ -1427,7 +1427,7 @@ void LocalDerivationGoal::addDependency(const StorePath & path)
|
||||||
|
|
||||||
Path source = worker.store.Store::toRealPath(path);
|
Path source = worker.store.Store::toRealPath(path);
|
||||||
Path target = chrootRootDir + worker.store.printStorePath(path);
|
Path target = chrootRootDir + worker.store.printStorePath(path);
|
||||||
debug("bind-mounting %s -> %s", source, target);
|
debug("bind-mounting %s -> %s", target, source);
|
||||||
|
|
||||||
if (pathExists(target))
|
if (pathExists(target))
|
||||||
throw Error("store path '%s' already exists in the sandbox", worker.store.printStorePath(path));
|
throw Error("store path '%s' already exists in the sandbox", worker.store.printStorePath(path));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue