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

Configure Feed

Select the types of activity you want to include in your feed.

disable push on should_apply_locally

+3 -7
+2
CHANGELOG.md
··· 36 36 with `-source` at priority 1000 (default). 37 37 - Evaluation has been sped up by doing it in parallel with other steps until 38 38 the .drv is required 39 + - A node which is going to be applied locally will now never `push` or 40 + `cleanup`. 39 41 40 42 ### Documented 41 43
-5
wire/lib/src/commands/common.rs
··· 53 53 name: context.name.clone(), 54 54 path: push.to_string(), 55 55 error: Box::new(error), 56 - help: if context.should_apply_locally { 57 - Some(format!("Remote push failed, but this node matches our local hostname ({0}). Perhaps you want to apply this node locally? Use `--always-build-local {0}` to override deployment.buildOnTarget", {context.name.to_string()})) 58 - } else { 59 - None 60 - } 61 56 })?; 62 57 63 58 Ok(())
-2
wire/lib/src/errors.rs
··· 315 315 path: String, 316 316 #[source] 317 317 error: Box<CommandError>, 318 - #[help] 319 - help: Option<String>, 320 318 }, 321 319 322 320 #[diagnostic(code(wire::Evaluate))]
+1
wire/lib/src/hive/steps/push.rs
··· 31 31 impl ExecuteStep for PushEvaluatedOutput { 32 32 fn should_execute(&self, ctx: &Context) -> bool { 33 33 !matches!(ctx.goal, Goal::Keys) 34 + && !ctx.should_apply_locally 34 35 && (ctx.node.build_remotely | matches!(ctx.goal, Goal::Push)) 35 36 } 36 37