diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-12 15:32:52 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-12 15:32:52 -0500 |
commit | 88120442d23a7e00833e8b0d523a6aa8072287b3 (patch) | |
tree | d8467b7ae3d0ae2787a2f85a29f661f4dd745f21 /tests | |
parent | e3cb536f19920018b522f76ac2661d68627b7c9e (diff) |
Debug when storePath changes
these rewrites should be transparent, but they are important to know
about when debugging
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fetchurl.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/fetchurl.sh b/tests/fetchurl.sh index 13447d774..510f98843 100644 --- a/tests/fetchurl.sh +++ b/tests/fetchurl.sh @@ -35,12 +35,13 @@ clearStore other_store=file://$TEST_ROOT/other_store hash=$(nix hash-file --type sha256 --base16 ./fetchurl.sh) -storePath=$(nix add-to-store --store $other_store ./fetchurl.sh) -outPath=$(nix-build -vvvvvv '<nix/fetchurl.nix>' --argstr url file:///no-such-dir/fetchurl.sh --argstr sha256 $hash --no-out-link --substituters $other_store) +storePath=$(nix --store $other_store add-to-store --flat ./fetchurl.sh) + +outPath=$(nix-build '<nix/fetchurl.nix>' --argstr url file:///no-such-dir/fetchurl.sh --argstr sha256 $hash --no-out-link --substituters $other_store) # 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 sha512 $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 # Test unpacking a NAR. |