aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/activate.rs7
-rw-r--r--src/main.rs1
-rw-r--r--src/utils/push.rs3
3 files changed, 2 insertions, 9 deletions
diff --git a/src/activate.rs b/src/activate.rs
index ae9e814..71dca72 100644
--- a/src/activate.rs
+++ b/src/activate.rs
@@ -87,8 +87,6 @@ pub async fn deactivate(profile_path: &str) -> Result<(), DeactivateError> {
.arg("-p")
.arg(&profile_path)
.arg("--rollback")
- .stdout(Stdio::null())
- .stderr(Stdio::null())
.status()
.await
.map_err(DeactivateError::RollbackError)?;
@@ -133,8 +131,6 @@ pub async fn deactivate(profile_path: &str) -> Result<(), DeactivateError> {
.arg(&profile_path)
.arg("--delete-generations")
.arg(last_generation_id)
- .stdout(Stdio::null())
- .stderr(Stdio::null())
.status()
.await
.map_err(DeactivateError::DeleteGenError)?;
@@ -298,7 +294,6 @@ pub async fn activate(
.arg(&profile_path)
.arg("--set")
.arg(&closure)
- .stdout(Stdio::null())
.status()
.await
.map_err(ActivateError::SetProfileError)?;
@@ -316,8 +311,6 @@ pub async fn activate(
.arg("-c")
.arg(&bootstrap_cmd)
.env("PROFILE", &profile_path)
- .stdout(Stdio::null())
- .stderr(Stdio::null())
.status()
.await;
diff --git a/src/main.rs b/src/main.rs
index 91adae3..cb297ad 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -226,6 +226,7 @@ async fn test_flake_support() -> Result<bool, std::io::Error> {
.arg("eval")
.arg("--expr")
.arg("builtins.getFlake")
+ // This will error on some machines "intentionally", and we don't really need that printing
.stdout(Stdio::null())
.stderr(Stdio::null())
.status()
diff --git a/src/utils/push.rs b/src/utils/push.rs
index 16bf8e7..d52fbbe 100644
--- a/src/utils/push.rs
+++ b/src/utils/push.rs
@@ -75,6 +75,7 @@ pub async fn push_profile(
};
let build_exit_status = build_command
+ // Logging should be in stderr, this just stops the store path from printing for no reason
.stdout(Stdio::null())
.status()
.await
@@ -100,8 +101,6 @@ pub async fn push_profile(
.arg(&super::deploy_path_to_activate_path_str(
&deploy_defs.current_exe,
)?)
- .stdout(Stdio::null())
- .stderr(Stdio::null())
.status()
.await
.map_err(PushProfileError::SignError)?;