hive: Pass --read-write-mode to nix-instantiate --eval

This enables the use of IFD inside `meta` and node `deployment.*`
options, from which we obtain the values with `nix-instantiate --eval`.

Fixes #45.
This commit is contained in:
Zhaofeng Li 2021-12-05 12:34:44 -08:00
parent e609301a72
commit 39f597f778

View file

@ -374,7 +374,8 @@ impl<'hive> NixInstantiate<'hive> {
fn eval(self) -> Command { fn eval(self) -> Command {
let mut command = self.instantiate(); let mut command = self.instantiate();
command.arg("--eval").arg("--json"); command.arg("--eval").arg("--json")
.arg("--read-write-mode"); // For cases involving IFD
command command
} }