mirror of
https://github.com/NixOS/nix.git
synced 2025-02-16 08:53:14 +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);
|
checkStoreName(suffix);
|
||||||
|
|
||||||
/* e.g., "sha256:1abc...:/nix/store:foo.tar.gz" */
|
/* e.g., "sha256:1abc...:foo.tar.gz" */
|
||||||
string s = "sha256:" + printHash(contentHash) + ":"
|
string s = "sha256:" + printHash(contentHash) + ":" + suffix;
|
||||||
+ nixStore + ":" + suffix;
|
|
||||||
|
|
||||||
pathHash = PathHash(hashString(htSHA256, s));
|
pathHash = PathHash(hashString(htSHA256, s));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user