Repository navigation
fix(docker): copy README.md into builder stage - #11
Merged
Merged
Conversation
pyproject.toml declares readme = "README.md", so hatchling requires
the file to exist at build time for metadata validation. The build
stage was copying pyproject.toml and src/ but not README.md,
causing 'uv build --wheel' to fail with:
OSError: Readme file does not exist: README.md
This was masked for ~11 weeks because the docker CI job has
needs: [lint, test] and lint was failing since ac16da8 — the docker
step only started running once lint went green in #10.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One-line fix:
Dockerfilewas missingCOPY README.mdin the builder stage. Becausepyproject.tomldeclaresreadme = "README.md", hatchling's metadata validation fails duringuv build --wheelwithOSError: Readme file does not exist: README.md.Why it went unnoticed
The
dockerCI job hasneeds: [lint, test].linthas been red sinceac16da8(2026-01-25), so the docker step never actually ran on main for ~11 weeks. Once #10 greened lint, docker ran for the first time and surfaced this pre-existing bug.Change
Test plan
uv build --wheelsucceeds locally (README.md present in workdir, matching the fixed Dockerfile)dockerjob passes (will verify on the PR)🤖 Generated with Claude Code