aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-10-23 22:03:15 -0700
committernotgne22020-10-23 22:04:18 -0700
commitc55471f1a52fc7cb4c467a3c9718640cdb950a22 (patch)
tree4832c0e35e0b3549f578fbdc271a7d055ba6e8a0
parent47e94f8dfd2ec9c6aacc6ba8d74f629e70433567 (diff)
Fix log messages, prevent non-flake builds writing to result, unmute stderr on nix builds
-rw-r--r--src/utils/push.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/utils/push.rs b/src/utils/push.rs
index f80f9f8..a82c9d4 100644
--- a/src/utils/push.rs
+++ b/src/utils/push.rs
@@ -13,7 +13,7 @@ pub async fn push_profile(
deploy_defs: &super::DeployDefs<'_>,
) -> Result<(), Box<dyn std::error::Error>> {
info!(
- "Pushing profile `{}` for node `{}`",
+ "Building profile `{}` for node `{}`",
deploy_data.profile_name, deploy_data.node_name
);
@@ -26,19 +26,18 @@ pub async fn push_profile(
repo, deploy_data.node_name, deploy_data.profile_name
))
.stdout(Stdio::null())
- .stderr(Stdio::null())
.status()
.await?
} else {
Command::new("nix-build")
.arg(&repo)
+ .arg("--no-out-link")
.arg("-A")
.arg(format!(
"deploy.nodes.{}.profiles.{}.path",
deploy_data.node_name, deploy_data.profile_name
))
.stdout(Stdio::null())
- .stderr(Stdio::null())
.status()
.await?
};
@@ -73,7 +72,7 @@ pub async fn push_profile(
}
debug!(
- "Copying profile `{} for node `{}`",
+ "Copying profile `{}` to node `{}`",
deploy_data.profile_name, deploy_data.node_name
);