1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

Merge pull request #5053 from NixOS/fix-no-such-file-in-chrooted-store

[2.3]: Use the real path when checking imported CA paths
This commit is contained in:
Eelco Dolstra 2021-07-27 10:34:29 +02:00 committed by GitHub
commit bd4e03d5fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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