From 1e540596c5ba51aa877e9affc79a5edbea3cbfe3 Mon Sep 17 00:00:00 2001 From: Sander Date: Thu, 17 Oct 2024 22:15:58 +0400 Subject: [PATCH] cli: watch the lock file for changes --- devenv/src/cnix.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/devenv/src/cnix.rs b/devenv/src/cnix.rs index f92a37e2f..20fd3a530 100644 --- a/devenv/src/cnix.rs +++ b/devenv/src/cnix.rs @@ -361,6 +361,7 @@ impl<'a> Nix<'a> { let mut cached_cmd = CachedCommand::new(&self.pool); cached_cmd.watch_path(self.devenv_root.join("devenv.yaml")); + cached_cmd.watch_path(self.devenv_root.join("devenv.lock")); cached_cmd.unwatch_path(self.devenv_root.join(".devenv.flake.nix")); // Ignore anything in .devenv.