aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornotgne22020-10-23 21:54:13 -0700
committernotgne22020-10-23 21:54:13 -0700
commit47e94f8dfd2ec9c6aacc6ba8d74f629e70433567 (patch)
treeef024e79e5a852c16effb765614f7dd7fb4fa018 /src
parent48d1e48429d72b50c72282e47a68be130ea506ad (diff)
Warn when flakes are not available, forward stderr of Nix evaluation
Diffstat (limited to 'src')
-rw-r--r--src/main.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index cedf684..5d76e3d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -221,11 +221,11 @@ async fn get_deployment_data(
build_command = build_command.arg(extra_arg);
}
- let build_output = build_command
- // .stdout(Stdio::null())
- // .stderr(Stdio::null())
- .output()
- .await?;
+ let build_child = build_command
+ .stdout(Stdio::piped())
+ .spawn()?;
+
+ let build_output = build_child.wait_with_output().await?;
if !build_output.status.success() {
good_panic!(
@@ -353,6 +353,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let supports_flakes = test_flake_support().await?;
+ if !supports_flakes {
+ warn!("A Nix version without flakes support was detected, support for this is work in progress");
+ }
+
let data =
get_deployment_data(supports_flakes, deploy_flake.repo, &opts.extra_build_args).await?;