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
mcp declares version = "1.1.0"
- However, both the sdist and wheel references point to
mcp-1.0.0 files:
- sdist:
mcp-1.0.0.tar.gz
- wheel:
mcp-1.0.0-py3-none-any.whl
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 lock
Suggested 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
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.lockfile. The error specifically indicates a mismatch between the declared version and the actual wheel file version.Error message:
Issue Details
The
uv.lockfile contains an inconsistent version reference:mcpdeclaresversion = "1.1.0"mcp-1.0.0files:mcp-1.0.0.tar.gzmcp-1.0.0-py3-none-any.whlReproduction Steps
cd src/gitdocker build -t mcp/git:latest -f Dockerfile .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.lockfile 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