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

pantsbuild / pants / 29717590758

20 Jul 2026 04:44AM UTC coverage: 92.951% (-0.001%) from 92.952%
29717590758

push

github

web-flow
A pants_lock binary. (Cherry-pick of #23530) (#23560)

This is a vastly simplified version of the flock(1) Linux binary 
(which alas is not available on macOS, or we would simply use it).

It takes a file descriptor inherited from its parent process and blocks
until it can acquire a fcntl lock.

This PR consists of:

1. The plumbing for building the binary, embedding it in the pants
    dist and extracting it for execution.
2. The pants_lock functionality.
3. Tests for the above.

A follow up change will use this binary in the uv integration.

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

67 of 79 new or added lines in 5 files covered. (84.81%)

79 existing lines in 2 files now uncovered.

94507 of 101674 relevant lines covered (92.95%)

3.69 hits per line

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

88.89
/src/python/pants/engine/embedded_binary.py


Source Not Available

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

© 2026 Coveralls, Inc