mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Make outputHashAlgo
accept "nar"
, stay in sync
Now that we have a few things identifying content address methods by name, we should be consistent about it. Move up the `parseHashAlgoOpt` for tidiness too. Discussed this change for consistency's sake as part of #8876 Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
c313394ae9
commit
93d68e18e5
4 changed files with 24 additions and 11 deletions
|
@ -61,3 +61,7 @@ out3=$(nix-store --add-fixed --recursive sha256 $TEST_ROOT/fixed)
|
|||
|
||||
out4=$(nix-store --print-fixed-path --recursive sha256 "1ixr6yd3297ciyp9im522dfxpqbkhcw0pylkb2aab915278fqaik" fixed)
|
||||
[ "$out" = "$out4" ]
|
||||
|
||||
# Can use `outputHashMode = "nar";` instead of `"recursive"` now.
|
||||
clearStore
|
||||
nix-build fixed.nix -A nar-not-recursive --no-out-link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue