nix/eval.nix: Disallow setting network and meta at the same time

This commit is contained in:
Zhaofeng Li 2021-01-17 00:06:45 -08:00
parent 2050e84bb8
commit f53ebef41c

View file

@ -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 if rawHive ? network then rawHive.network
else {}; else {};