2 files changed,
+7,
-2
+4,
-1
1@@ -57,11 +57,14 @@ affects `devenv shell`/`test`/`build`. Use the Nix flake template instead:
2
3 ```sh
4 mkdir ~/projects/newthing && cd ~/projects/newthing
5-nix flake init -t git+https://git.kilimanjaro.io/devkit
6+nix flake init --refresh -t git+https://git.kilimanjaro.io/devkit
7 ```
8
9 (Local clone: `nix flake init -t path:/home/btburke/projects/devkit`.)
10
11+`--refresh` picks up the latest template commit; without it nix reuses the
12+cached branch ref for `tarball-ttl` (default 1h). `proj init` always passes it.
13+
14 ## Fish shell helper
15
16 `fish/functions/proj.fish` defines a `proj` function wrapping the scaffold:
+3,
-1
1@@ -14,8 +14,10 @@ function proj --description 'Personal project helpers (devkit scaffold)'
2 cd $argv[2]; or return 1
3 end
4 echo "Initializing devkit project in "(pwd)"..." >&2
5+ # --refresh forces re-resolving the branch; without it nix reuses the
6+ # cached ref for tarball-ttl (default 1h) and misses new template commits.
7 command nix --extra-experimental-features 'nix-command flakes' \
8- flake init -t $template
9+ flake init --refresh -t $template
10 or return 1
11 echo "Scaffold written. Next: devenv shell" >&2
12 case '*'