Skip to content

Preserve pinned versions when checking UV lockfiles - #2416

Closed
GruffElixir wants to merge 1 commit into
pypa:masterfrom
GruffElixir:fix/2406-preserve-lockfile-pins
Closed

Preserve pinned versions when checking UV lockfiles#2416
GruffElixir wants to merge 1 commit into
pypa:masterfrom
GruffElixir:fix/2406-preserve-lockfile-pins

Conversation

@GruffElixir

Copy link
Copy Markdown

Summary

  • seed Hatch's temporary UV lockfile with the committed lockfile before checking it
  • let UV retain compatible pinned versions during hatch env lock --check
  • add regression coverage proving the existing lock content is provided to the resolver

Fixes #2406

Validation

  • python -m pytest -q tests/cli/env/test_lock.py --disable-warnings (33 passed)
  • python -m ruff check src/hatch/env/lockers/uv.py tests/cli/env/test_lock.py
  • python -m ruff format --check src/hatch/env/lockers/uv.py tests/cli/env/test_lock.py

Copilot AI lite review requested due to automatic review settings September 7, 2026 06:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cjames23

cjames23 commented Sep 8, 2026

Copy link
Copy Markdown
Member

@cjames23 cjames23 closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hatch env lock --check requires lockfiles to contain the latest compatible dependency versions

3 participants