-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version inconsistency in uv.lock causing Docker build failure
Description
When attempting to build the Docker image for the Git MCP server using the provided Dockerfile, the build fails due to a version inconsistency in the uv.lock file. The error specifically indicates a mismatch between the declared version and the actual wheel file version.
Error message:
error: Failed to parse `uv.lock`
Caused by: The entry for package `mcp` v1.1.0 has wheel `mcp-1.0.0-py3-none-any.whl` with inconsistent version: v1.0.0
Issue Details
The uv.lock file contains an inconsistent version reference:
- The package entry for
mcpdeclaresversion = "1.1.0" - However, both the sdist and wheel references point to
mcp-1.0.0files:- sdist:
mcp-1.0.0.tar.gz - wheel:
mcp-1.0.0-py3-none-any.whl
- sdist:
Reproduction Steps
- Clone the repository
- Navigate to the git server directory:
cd src/git - Run
docker build -t mcp/git:latest -f Dockerfile . - Observe the build failure
Workaround
The issue can be resolved by regenerating the lockfile:
cd src/git
rm uv.lock
uv lockSuggested Fix
Regenerate and commit a corrected uv.lock file to the repository to ensure consistent version references. This will prevent build failures for users who are trying to build the Docker image directly from the repository.
Environment Information
- Docker version: 4.39.0
- Operating System: Win 11 24h2
- Python version: 3.12
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working