mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
nix flake update: Imply --refresh
This commit is contained in:
parent
9640208d00
commit
5d70b454be
2 changed files with 4 additions and 2 deletions
|
@ -119,6 +119,9 @@ struct CmdFlakeUpdate : FlakeCommand
|
|||
|
||||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
/* Use --refresh by default for 'nix flake update'. */
|
||||
settings.tarballTtl = 0;
|
||||
|
||||
lockFlake();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue