• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 29459739780

15 Jul 2026 11:50PM UTC coverage: 92.982% (+0.007%) from 92.975%
29459739780

push

github

web-flow
Correctly rename uv existing lockfiles for use with --sync (#23522)

`uv` does a minimal update of existing lockfiles by default.
So implementing `generate-lockfiles --sync` in that case
is just a matter of making the existing lockfile available
in the sandbox.

Unfortunately in doing so we neglected to rename it
to the literal name `uv.lock` expected by `uv`, so 
the `--sync` functionality didn't generally work in this case.

This change renames the existing lockfile (if it is in fact
a uv lockfile). 

This mirrors the existing rename of `uv.lock` to the target
name in the repo.

This change also makes both renames use FileEntry
instead of FileContent, so we don't have to materialize
the lockfile contents into memory.

78 of 79 new or added lines in 2 files covered. (98.73%)

94695 of 101842 relevant lines covered (92.98%)

3.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.85
/src/python/pants/backend/python/goals/lockfile.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc