Merge "nix store delete: don't realise paths" into main

This commit is contained in:
Linus Heckemann
2025-03-10 18:27:29 +00:00
committed by Gerrit Code Review
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
---
synopsis: "`nix store delete` no longer builds paths"
cls: [2782]
category: Fixes
credits: lheckemann
---
`nix store delete` no longer realises the installables
specified. Previously, `nix store delete nixpkgs#hello` would download
hello only to immediately delete it again. Now, it exits with an error
if given an installable that isn't in the store.
+1
View File
@@ -18,6 +18,7 @@ struct CmdStoreDelete : StorePathsCommand
.description = "Do not check whether the paths are reachable from a root.",
.handler = {&options.ignoreLiveness, true}
});
realiseMode = Realise::Nothing;
}
std::string description() override