diff options
author | Nick Van den Broeck <nick.van.den.broeck666@gmail.com> | 2019-06-03 14:47:47 +0200 |
---|---|---|
committer | Nick Van den Broeck <nick.van.den.broeck666@gmail.com> | 2019-06-03 14:47:47 +0200 |
commit | d9a6a75ed28c590dde2dba846e356cbcda38d977 (patch) | |
tree | f04f212c0384085d508f30ea05839ef752e6b6c3 /tests | |
parent | 507c150034256117cd56e31944feedb8f2f3ff3e (diff) |
Made epochs more fine-grained
Fixes #2894
Diffstat (limited to 'tests')
-rw-r--r-- | tests/flakes.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh index c4dd8c333..998abfd09 100644 --- a/tests/flakes.sh +++ b/tests/flakes.sh @@ -29,7 +29,7 @@ cat > $flake1Dir/flake.nix <<EOF { name = "flake1"; - epoch = 2019; + epoch = 201906; description = "Bla bla"; @@ -48,7 +48,7 @@ cat > $flake2Dir/flake.nix <<EOF { name = "flake2"; - epoch = 2019; + epoch = 201906; inputs = [ "flake1" ]; @@ -67,7 +67,7 @@ cat > $flake3Dir/flake.nix <<EOF { name = "flake3"; - epoch = 2019; + epoch = 201906; inputs = [ "flake2" ]; @@ -169,7 +169,7 @@ cat > $flake3Dir/flake.nix <<EOF { name = "flake3"; - epoch = 2019; + epoch = 201906; inputs = [ "flake1" "flake2" ]; @@ -192,7 +192,7 @@ nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:sth [[ ! (-z $(git -C $flake3Dir diff master)) ]] # Unsupported epochs should be an error. -sed -i $flake3Dir/flake.nix -e s/2019/2030/ +sed -i $flake3Dir/flake.nix -e s/201906/201909/ nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:sth 2>&1 | grep 'unsupported epoch' # Test whether registry caching works. @@ -219,7 +219,7 @@ cat > $flake3Dir/flake.nix <<EOF { name = "flake3"; - epoch = 2019; + epoch = 201906; inputs = [ "flake1" "flake2" ]; |