Fix Docker build: copy uv.lock to prevent dependency drift#603
Closed
Fix Docker build: copy uv.lock to prevent dependency drift#603
Conversation
The standalone Dockerfile only copied pyproject.toml but not uv.lock, causing uv sync to resolve dependencies fresh on every build. This broke CI when claude-agent-sdk 0.1.49 was published with only macOS ARM wheels (no Linux x86_64 support), since the Docker build runs on Linux. Now copies uv.lock and uses --frozen --no-install-project to install exact locked versions, preventing unexpected upgrades. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
|
that problem should be already fixed now from here: #601 |
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
uv.lockinto the Docker build stage souv syncuses locked dependency versions--frozen --no-install-projectto enforce exact versions from the lockfileclaude-agent-sdk==0.1.49being published with only macOS ARM wheels (no Linux x86_64)Context
The standalone Dockerfile only copied
pyproject.tomlbut notuv.lock, souv syncresolved dependencies fresh on every build. Whenclaude-agent-sdk>=0.1.27resolved to0.1.49(which lacks Linux wheels), all Docker builds on Linux x86_64 started failing.Test plan
--target api-onlyclaude-agent-sdkversion is0.1.31(locked) not0.1.49🤖 Generated with Claude Code