1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 11:03:54 +02:00

Use the real path when checking imported CA paths

Otherwise chrooted store will fail because Nix will try to read the
virtual path instead of the physical one

Should fix https://github.com/NixOS/nixpkgs/issues/126141
This commit is contained in:
regnat 2021-07-26 11:34:47 +02:00
parent 59acbc5220
commit 89fba5c847

View file

@ -1038,7 +1038,7 @@ void LocalStore::addToStore(const ValidPathInfo & info, Source & source,
auto actualFoHash = hashCAPath( auto actualFoHash = hashCAPath(
recursive, recursive,
expectedHash.type, expectedHash.type,
info.path realPath
); );
if (ca != actualFoHash) { if (ca != actualFoHash) {
throw Error("ca hash mismatch importing path '%s';\n specified: %s\n got: %s", throw Error("ca hash mismatch importing path '%s';\n specified: %s\n got: %s",