diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-05-22 14:31:40 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-05-22 14:31:40 +0200 |
commit | e414bde6f9f58e599d48307ff3cb0ab64cb47d9a (patch) | |
tree | 93387e851b19fd69ecfa182b7be916036b6bba1c /tests/flakes.sh | |
parent | 3cecf3f39c5c580ed6d0c5f0bcbb09dcc53dfae4 (diff) |
Check the flake epoch
Closes #2883.
Diffstat (limited to 'tests/flakes.sh')
-rw-r--r-- | tests/flakes.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh index 5137bc39a..6c987ad14 100644 --- a/tests/flakes.sh +++ b/tests/flakes.sh @@ -146,7 +146,7 @@ nix build -o $TEST_ROOT/result file://$flake2Dir:bar # Test whether indirect dependencies work. nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:xyzzy -# Add dependency to flake3 +# Add dependency to flake3. rm $flake3Dir/flake.nix cat > $flake3Dir/flake.nix <<EOF @@ -174,3 +174,7 @@ nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:sth # Check whether it saved the lockfile [[ ! (-z $(git -C $flake3Dir diff master)) ]] + +# Unsupported epochs should be an error. +sed -i $flake3Dir/flake.nix -e s/2019/2030/ +nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:sth 2>&1 | grep 'unsupported epoch' |