1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 04:56:01 +01:00

fetchToStore(): Cache in dry-run mode

This commit is contained in:
Eelco Dolstra 2025-06-06 21:50:55 +02:00
parent 0e1df1c0f1
commit f8ef941c04

View file

@ -55,7 +55,7 @@ StorePath fetchToStore(
debug(mode == FetchMode::DryRun ? "hashed '%s'" : "copied '%s' to '%s'", path, store.printStorePath(storePath));
if (cacheKey && mode == FetchMode::Copy)
if (cacheKey)
fetchers::getCache()->upsert(*cacheKey, store, {}, storePath);
return storePath;