aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authornotgne22020-10-26 12:44:19 -0700
committernotgne22020-10-26 12:44:19 -0700
commitdf002c31a64409350a3cb8825364542c65a4d00a (patch)
tree229deae6687a5b454cf2417fcb022a78f8ac20b8 /src/main.rs
parent7ec0bc21cd3678e39270d7ea59bccaefa288abfa (diff)
Add more debug logs
Diffstat (limited to '')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 48fb482..5dc6bb9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -73,7 +73,6 @@ struct Opts {
temp_path: Option<String>,
}
-#[inline]
async fn push_all_profiles(
node: &utils::data::Node,
node_name: &str,
@@ -190,6 +189,8 @@ async fn deploy_all_profiles(
/// Returns if the available Nix installation supports flakes
#[inline]
async fn test_flake_support() -> Result<bool, Box<dyn std::error::Error>> {
+ debug!("Checking for flake support");
+
Ok(Command::new("nix")
.arg("eval")
.arg("--expr")
@@ -202,6 +203,8 @@ async fn test_flake_support() -> Result<bool, Box<dyn std::error::Error>> {
}
async fn check_deployment(supports_flakes: bool, repo: &str, extra_build_args: &[String]) -> () {
+ info!("Running checks for flake in {}", repo);
+
let mut c = match supports_flakes {
true => Command::new("nix"),
false => Command::new("nix-build"),