forked from DGNum/colmena
nix/eval.nix: Disallow setting network and meta at the same time
This commit is contained in:
parent
2050e84bb8
commit
f53ebef41c
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
userMeta = if rawHive ? meta then rawHive.meta
|
||||
userMeta =
|
||||
if rawHive ? meta && rawHive ? network then
|
||||
throw "Only one of `network` and `meta` may be specified. `meta` should be used as `network` is for NixOps compatibility."
|
||||
else if rawHive ? meta then rawHive.meta
|
||||
else if rawHive ? network then rawHive.network
|
||||
else {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue