Commit e7e289b
fix(build): resolve incorrect git ref path causing unnecessary recompilation (#56)
The build script was constructing the git ref path by joining the ref
(e.g. refs/heads/main) to the repo root instead of the .git directory.
This produced a non-existent path like /repo/refs/heads/main instead of
/repo/.git/refs/heads/main. Since cargo treats a missing rerun-if-changed
file as always stale, streamkit-server was recompiled on every build
even with no code changes.
Fix: use head_path.parent() (the .git dir) instead of going up two
levels to the repo root.
Co-authored-by: StreamKit Devin <devin@streamkit.dev>
Co-authored-by: Claudio Costa <cstcld91@gmail.com>1 parent 4bd0d2f commit e7e289b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments