mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Merge branch 'submit/sparse-generation-symlinks' of https://github.com/ctheune/nix
This commit is contained in:
commit
a1c1bf3a56
2 changed files with 29 additions and 1 deletions
|
@ -99,6 +99,16 @@ if nix-env -q '*' | grep -q bar; then false; fi
|
|||
nix-env --list-generations
|
||||
test "$(nix-env --list-generations | wc -l)" -eq 7
|
||||
|
||||
# Doing the same operation twice results in the same generation, which triggers
|
||||
# "lazy" behaviour and does not create a new symlink.
|
||||
|
||||
nix-env -i foo
|
||||
nix-env -i foo
|
||||
|
||||
# Count generations.
|
||||
nix-env --list-generations
|
||||
test "$(nix-env --list-generations | wc -l)" -eq 8
|
||||
|
||||
# Switch to a specified generation.
|
||||
nix-env --switch-generation 7
|
||||
[ "$(nix-store -q --resolve $profiles/test)" = "$oldGen" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue