Commit 55bbfb4
Give dynamic versioning a fallback for git-less builds
The Docker build copies only pyproject.toml and rmcp/ (.dockerignore
excludes .git), so hatchling had no repository to read a tag from:
RuntimeError: Error getting the version from source
`uv-dynamic-versioning`: This does not appear to be a Git project
That failed the image build, which in turn skipped r-testing,
docker-scenarios and production-container-tests -- the same dependency
chain that hid the R suite last time.
fallback-version keeps git-less builds working. It cannot mask a bad
release: release builds run in a full checkout with fetch-depth 0, and
the publish workflow asserts the built version matches the tag, so a
fallback reaching PyPI would fail the guard rather than upload 0.0.0.
Reproduced locally by building from a copy of just pyproject.toml and
rmcp/, which is what the Docker context actually contains.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 7c0da97 commit 55bbfb4
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
0 commit comments