mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
1e99f324d9
8b86f415c1
was merged from a CI run that
predated the new linting.
24 lines
470 B
Bash
Executable file
24 lines
470 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source ./common.sh
|
|
|
|
requireGit
|
|
|
|
flake1Dir="$TEST_ROOT/eval-cache-flake"
|
|
|
|
createGitRepo "$flake1Dir" ""
|
|
|
|
cat >"$flake1Dir/flake.nix" <<EOF
|
|
{
|
|
description = "Fnord";
|
|
outputs = { self }: {
|
|
foo.bar = throw "breaks";
|
|
};
|
|
}
|
|
EOF
|
|
|
|
git -C "$flake1Dir" add flake.nix
|
|
git -C "$flake1Dir" commit -m "Init"
|
|
|
|
expect 1 nix build "$flake1Dir#foo.bar" 2>&1 | grepQuiet 'error: breaks'
|
|
expect 1 nix build "$flake1Dir#foo.bar" 2>&1 | grepQuiet 'error: breaks'
|