mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
* Sync with thesis: do not include store location in the hash
computation (in the intensional model).
This commit is contained in:
parent
1c9df27fe0
commit
8fae552a7f
@ -758,9 +758,8 @@ void makeStorePath(const Hash & contentHash, const string & suffix,
|
||||
{
|
||||
checkStoreName(suffix);
|
||||
|
||||
/* e.g., "sha256:1abc...:/nix/store:foo.tar.gz" */
|
||||
string s = "sha256:" + printHash(contentHash) + ":"
|
||||
+ nixStore + ":" + suffix;
|
||||
/* e.g., "sha256:1abc...:foo.tar.gz" */
|
||||
string s = "sha256:" + printHash(contentHash) + ":" + suffix;
|
||||
|
||||
pathHash = PathHash(hashString(htSHA256, s));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user