mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
Don’t use makeStorePath
This commit is contained in:
parent
1c148a80fe
commit
85d01e1f65
1 changed files with 3 additions and 1 deletions
|
@ -583,7 +583,9 @@ void copyStorePath(ref<Store> srcStore, ref<Store> dstStore,
|
|||
// recompute store path on the chance dstStore does it differently
|
||||
if (hasPrefix(info->ca, "fixed:") && info->references.empty()) {
|
||||
auto info2 = make_ref<ValidPathInfo>(*info);
|
||||
info2->path = dstStore->makeStorePath("output:out", hashString(htSHA256, info->ca), storePath.name());
|
||||
FileIngestionMethod ingestionMethod { info->ca.compare(6, 2, "r:") == 0 };
|
||||
Hash hash(std::string(info->ca, ingestionMethod == FileIngestionMethod::Recursive ? 8 : 6));
|
||||
info2->path = dstStore->makeFixedOutputPath(ingestionMethod, hash, storePath.name());
|
||||
info = info2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue