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

pantsbuild / pants / 23967073483

04 Apr 2026 12:19AM UTC coverage: 92.909% (+0.001%) from 92.908%
23967073483

push

github

web-flow
invalid-lockfile-behavior=invalid for separate metadata too (#23216)

With the "inline" metadata invalid-lockfile-behavior=invalid would avoid
even trying to read the metadata, but this conditional wasn't present
for the separate file code path. This meant that if you had a Pants from
the past read a lockfile from the future, it would error with something
like `KeyError: (<LockfileScope.PYTHON: 'python'>, 6)` unless you
deleted the metadata files.

LLM: Claude explained how these functions worked and explored the
history, proposed a fix when given a stack trace, and then proposed a
better fix after being pointed out from the docs what
invalid-lockfile-behavior actually did.

91542 of 98529 relevant lines covered (92.91%)

4.04 hits per line

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

97.37
/src/python/pants/backend/python/util_rules/pex_requirements.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