mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Check for epochs < 201906
This commit is contained in:
parent
cc218b15ba
commit
b0c220c02e
1 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,8 @@ Flake getFlake(EvalState & state, const FlakeRef & flakeRef)
|
|||
|
||||
if (auto epoch = vInfo.attrs->get(sEpoch)) {
|
||||
flake.epoch = state.forceInt(*(**epoch).value, *(**epoch).pos);
|
||||
if (flake.epoch < 201906)
|
||||
throw Error("flake '%s' has illegal epoch %d", flakeRef, flake.epoch);
|
||||
if (flake.epoch > 201906)
|
||||
throw Error("flake '%s' requires unsupported epoch %d; please upgrade Nix", flakeRef, flake.epoch);
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue