forked from lix-project/lix
Fix SRI test
We can’t use custom name here because different names will have different store paths. This is a limitation of the Store API’s reliance on store paths. We might be able to get around the above in the future by using a dummy name for certain fixed output paths.
This commit is contained in:
parent
88120442d2
commit
006f1252d2
|
@ -42,7 +42,7 @@ outPath=$(nix-build '<nix/fetchurl.nix>' --argstr url file:///no-such-dir/fetchu
|
|||
|
||||
# Test hashed mirrors with an SRI hash.
|
||||
nix-build '<nix/fetchurl.nix>' --argstr url file:///no-such-dir/fetchurl.sh --argstr hash $(nix to-sri --type sha256 $hash) \
|
||||
--argstr name bla --no-out-link --substituters $other_store
|
||||
--no-out-link --substituters $other_store
|
||||
|
||||
# Test unpacking a NAR.
|
||||
rm -rf $TEST_ROOT/archive
|
||||
|
|
Loading…
Reference in a new issue