Skip to content

Commit 9f69562

Browse files
authored
[direnv] invalidate nix-direnv cache when flake inputs change (#10129)
1 parent 9284450 commit 9f69562

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.envrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@ PATH_add out/mgd/root/opt/oxide/mgd/bin
88

99
if [ "$OMICRON_USE_FLAKE" = 1 ] && nix flake show &> /dev/null
1010
then
11+
# watch version files which should cause the nix-direnv cache to be
12+
# invalidated, as they are inputs to the Nix flake.
13+
watch_file tools/maghemite_mg_openapi_version
14+
watch_file tools/dendrite_version
15+
watch_file tools/clickhouse_version
16+
watch_file tools/cocroachdb_version
17+
watch_file rust-toolchain.toml
1118
use flake;
1219
fi

0 commit comments

Comments
 (0)