nix store delete: don't realise paths

Change-Id: I9566974a3afa70c61a0c8185b4dbd24a6440473f
This commit is contained in:
Linus Heckemann
2025-03-09 13:07:03 +01:00
parent 93c3ca4e92
commit 6a4efb82bc
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