mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Add 'nix store delete' command
This commit is contained in:
parent
77c9ceda4b
commit
6254b1f5d2
3 changed files with 70 additions and 1 deletions
|
@ -58,7 +58,7 @@ outPath2=$(nix-build $(nix-instantiate multiple-outputs.nix -A a.second) --no-ou
|
|||
|
||||
# Delete one of the outputs and rebuild it. This will cause a hash
|
||||
# rewrite.
|
||||
nix-store --delete $TEST_ROOT/result-second --ignore-liveness
|
||||
nix store delete $TEST_ROOT/result-second --ignore-liveness
|
||||
nix-build multiple-outputs.nix -A a.all -o $TEST_ROOT/result
|
||||
[ "$(cat $TEST_ROOT/result-second/file)" = "second" ]
|
||||
[ "$(cat $TEST_ROOT/result-second/link/file)" = "first" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue