1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Add missing --hash-algo flag to nix store add

This commit is contained in:
John Ericson 2024-01-19 01:07:26 -05:00
parent 382fa51ff0
commit 356352c370
3 changed files with 14 additions and 2 deletions

View file

@ -37,9 +37,11 @@ clearStore
path3=$(nix store add-path ./dummy)
[[ "$path1" == "$path2" ]]
[[ "$path1" == "$path3" ]]
path4=$(nix store add --mode nar --hash-algo sha1 ./dummy)
)
(
path1=$(nix store add --mode flat ./dummy)
path2=$(nix store add-file ./dummy)
[[ "$path1" == "$path2" ]]
path4=$(nix store add --mode flat --hash-algo sha1 ./dummy)
)