From 7fa67466c75bb0c14659b418b01ce331904b539e Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 27 Nov 2020 15:01:50 -0700 Subject: Remove old `--no-link` flags to the Nix build --- src/main.rs | 2 +- src/utils/push.rs | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2381103..544f563 100644 --- a/src/main.rs +++ b/src/main.rs @@ -312,7 +312,7 @@ enum RunDeployError { DeployProfileError(#[from] utils::deploy::DeployProfileError), #[error("Failed to push profile: {0}")] PushProfileError(#[from] utils::push::PushProfileError), - #[error("No profile names `{0}` was found")] + #[error("No profile named `{0}` was found")] ProfileNotFound(String), #[error("No node named `{0}` was found")] NodeNotFound(String), diff --git a/src/utils/push.rs b/src/utils/push.rs index 18b97b5..f6330b5 100644 --- a/src/utils/push.rs +++ b/src/utils/push.rs @@ -47,19 +47,15 @@ pub async fn push_profile( }; let mut build_command = if supports_flakes { - build_c.arg("build").arg("--no-link").arg(format!( + build_c.arg("build").arg(format!( "{}#deploy.nodes.{}.profiles.{}.path", repo, deploy_data.node_name, deploy_data.profile_name )) } else { - build_c - .arg(&repo) - .arg("--no-out-link") - .arg("-A") - .arg(format!( - "deploy.nodes.{}.profiles.{}.path", - deploy_data.node_name, deploy_data.profile_name - )) + build_c.arg(&repo).arg("-A").arg(format!( + "deploy.nodes.{}.profiles.{}.path", + deploy_data.node_name, deploy_data.profile_name + )) }; build_command = match (keep_result, supports_flakes) { -- cgit v1.2.3