mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
parent
507c150034
commit
d9a6a75ed2
5 changed files with 11 additions and 11 deletions
|
@ -312,7 +312,7 @@ Flake getFlake(EvalState & state, const FlakeRef & flakeRef, bool impureIsAllowe
|
|||
|
||||
if (auto epoch = vInfo.attrs->get(sEpoch)) {
|
||||
flake.epoch = state.forceInt(*(**epoch).value, *(**epoch).pos);
|
||||
if (flake.epoch > 2019)
|
||||
if (flake.epoch > 201906)
|
||||
throw Error("flake '%s' requires unsupported epoch %d; please upgrade Nix", flakeRef, flake.epoch);
|
||||
} else
|
||||
throw Error("flake '%s' lacks attribute 'epoch'", flakeRef);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue