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

pantsbuild / pants / 29461827266

16 Jul 2026 12:34AM UTC coverage: 92.952% (+0.004%) from 92.948%
29461827266

push

github

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

`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.

Co-authored-by: Benjy Weinberger <benjyw@gmail.com>

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

1 existing line in 1 file now uncovered.

94439 of 101600 relevant lines covered (92.95%)

3.69 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