ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/

build locally when deploying locally

+6 -1
+2
CHANGELOG.md
··· 40 40 - A node which is going to be applied locally will now never `push` or 41 41 `cleanup`. 42 42 - `show` subcommand looks nicer now. 43 + - `build` step will always build remotely when the node is going to be applied 44 + locally. 43 45 44 46 ### Documented 45 47
+4 -1
wire/lib/src/hive/steps/build.rs
··· 36 36 37 37 let status = run_command_with_env( 38 38 &CommandArguments::new(command_string, ctx.modifiers) 39 - .on_target(if ctx.node.build_remotely { 39 + // build remotely if asked for AND we arent applying locally 40 + // building remotely but applying locally does not logically 41 + // make any sense 42 + .on_target(if ctx.node.build_remotely && !ctx.should_apply_locally { 40 43 Some(&ctx.node.target) 41 44 } else { 42 45 None