From 8388e2ea48f340e940005aa7ffbc94fe7681c766 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 22 Dec 2020 11:57:31 +0100 Subject: [PATCH] Revert "Tests for #3964" This reverts commit e90530e491278169b501e53ce6773e253b45e15e. It appears that this backported test relies on new functionality. The error is: + nix copy --to file:///build/nix-test/binary-cache /build/nix-test/store/dckdy2xp7sn8qvyx8axxjq7clnxddri1-multi-output warning: you don't have Internet access; disabling some network-dependent features error: uploading to 'file:///build/nix-test/binary-cache/nar/0hpfhrig9h6fvbjmiwsb7zkaxr19vr2w048y4xb3nrs36bagf92n.nar.xz' is not supported --- tests/binary-cache.sh | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index 7fc6a6fcc..eb58ae7c1 100644 --- a/tests/binary-cache.sh +++ b/tests/binary-cache.sh @@ -168,34 +168,3 @@ clearCacheCache nix-store -r $outPath --substituters "file://$cacheDir2 file://$cacheDir" --trusted-public-keys "$publicKey" fi # HAVE_LIBSODIUM - -# Test against issue https://github.com/NixOS/nix/issues/3964 -# -expr=' - with import ./config.nix; - mkDerivation { - name = "multi-output"; - buildCommand = "mkdir -p $out; echo foo > $doc; echo $doc > $out/docref"; - outputs = ["out" "doc"]; - } -' -outPath=$(nix-build --no-out-link -E "$expr") -docPath=$(nix-store -q --references $outPath) - -# $ nix-store -q --tree $outPath -# ...-multi-output -# +---...-multi-output-doc - -nix copy --to "file://$cacheDir" $outPath - -hashpart() { - basename "$1" | cut -c1-32 -} - -# break the closure of out by removing doc -rm $cacheDir/$(hashpart $docPath).narinfo - -nix-store --delete $outPath $docPath -# -vvv is the level that logs during the loop -timeout 60 nix-build -E "$expr" --option substituters "file://$cacheDir" \ - --option trusted-binary-caches "file://$cacheDir" --no-require-sigs