Commit fe51222
committed
fix(docker): materialise tracked files before uv sync
The selective COPYs in the runtime stage leave most tracked files
(LICENSE, README, .github/, Dockerfile itself, …) missing from /app.
hatch-vcs/setuptools_scm interprets those as deleted in the working
tree during `uv sync` and stamps the package with a +dYYYYMMDD dirty
suffix. Combined with the next-dev guess that also kicks in on dirty
trees, the version came out as e.g. 0.9.1.dev0+g<sha>.d20260520
instead of 0.9.0.
Run `git checkout -- .` right after `COPY .git` so the index
re-materialises the missing files. The working tree is then clean,
hatch-vcs reads the tag straight, and the version computed at sync
time is baked into the installed package metadata before the css
builder later overlays /app/src/struudel/static/css/app.css.1 parent 7067057 commit fe51222
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
0 commit comments