From 87c7b05b054bdca2af430962f0ea123b3fb17146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=BCde?= Date: Sat, 16 May 2026 00:49:22 +0200 Subject: [PATCH] meta: use 'nix flake update ' instead of removed --update-input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit current nix CLI removed 'nix flake lock --update-input X' in favour of 'nix flake update X'. switch all three call sites (prepare_deploy, lock_update_for_rebuild, lock_update_hyperhive). 'nix flake lock' with no args still works for the seed path in sync_agents — it resolves missing inputs without bumping existing ones. --- hive-c0re/src/meta.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hive-c0re/src/meta.rs b/hive-c0re/src/meta.rs index e434d24..023ded4 100644 --- a/hive-c0re/src/meta.rs +++ b/hive-c0re/src/meta.rs @@ -92,7 +92,7 @@ pub async fn sync_agents( pub async fn prepare_deploy(name: &str) -> Result<()> { let dir = meta_dir(); let input = format!("agent-{name}"); - nix(&dir, &["flake", "lock", "--update-input", &input]).await + nix(&dir, &["flake", "update", &input]).await } /// Phase 2-success. Commits the staged `flake.lock` change with a @@ -127,7 +127,7 @@ pub async fn abort_deploy() -> Result<()> { pub async fn lock_update_for_rebuild(name: &str) -> Result<()> { let dir = meta_dir(); let input = format!("agent-{name}"); - nix(&dir, &["flake", "lock", "--update-input", &input]).await?; + nix(&dir, &["flake", "update", &input]).await?; if !git_is_clean(&dir).await? { git(&dir, &["add", "flake.lock"]).await?; git_commit(&dir, &format!("rebuild {name}: lock update")).await?; @@ -141,7 +141,7 @@ pub async fn lock_update_for_rebuild(name: &str) -> Result<()> { #[allow(dead_code)] pub async fn lock_update_hyperhive() -> Result<()> { let dir = meta_dir(); - nix(&dir, &["flake", "lock", "--update-input", "hyperhive"]).await?; + nix(&dir, &["flake", "update", "hyperhive"]).await?; if !git_is_clean(&dir).await? { git(&dir, &["add", "flake.lock"]).await?; git_commit(&dir, "bump hyperhive").await?;