mirror of
https://github.com/NixOS/nix
synced 2025-07-10 13:03:55 +02:00
* Fix a bug that caused Fix not to be deterministic (due to addToStore
returning different paths if the hash of the path to be added was already available in the store under a different name).
This commit is contained in:
parent
c834a5c597
commit
73b163c1a1
3 changed files with 9 additions and 9 deletions
|
@ -131,7 +131,7 @@ static Expr evalExpr(Expr e)
|
|||
string srcPath = searchPath(s1);
|
||||
string dstPath;
|
||||
Hash hash;
|
||||
addToStore(srcPath, dstPath, hash);
|
||||
addToStore(srcPath, dstPath, hash, true);
|
||||
return ATmake("Path(<str>, Hash(<str>), [])",
|
||||
dstPath.c_str(), ((string) hash).c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue