diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:50:02 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:50:02 +0100 |
commit | 5f2eaa1b3596d9354f6111d493be208867594352 (patch) | |
tree | 092a84a6f3ae05301ff5d6be1a39f746ef353132 /tests/functional/fixed.nix | |
parent | aac8416eac606c1b6253ae78b8b3168c718366bd (diff) |
Merge pull request #9662 from shlevy/flat-fixed-references-assert
Improve error message for fixed-outputs with references.
(cherry picked from commit ff6de4a9ee6c3862db9ee5f09ff9c3f43ae7a088)
Change-Id: I733c49760b9a3f1b76a6bece3b250b8579cd6cac
Diffstat (limited to 'tests/functional/fixed.nix')
-rw-r--r-- | tests/functional/fixed.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/fixed.nix b/tests/functional/fixed.nix index babe71504..5bdf79333 100644 --- a/tests/functional/fixed.nix +++ b/tests/functional/fixed.nix @@ -48,6 +48,15 @@ rec { (f ./fixed.builder1.sh "flat" "md5" "ddd8be4b179a529afa5f2ffae4b9858") ]; + badReferences = mkDerivation rec { + name = "bad-hash"; + builder = script; + script = builtins.toFile "installer.sh" "echo $script >$out"; + outputHash = "1ixr6yd3297ciyp9im522dfxpqbkhcw0pylkb2aab915278fqaik"; + outputHashAlgo = "sha256"; + outputHashMode = "flat"; + }; + # Test for building two derivations in parallel that produce the # same output path because they're fixed-output derivations. parallelSame = [ |