mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 13:06:01 +01:00
fetchToStore(): Cache in dry-run mode
This commit is contained in:
parent
0e1df1c0f1
commit
f8ef941c04
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue