python-poetry / python-poetry/poetry
option to fail if lockfile isn't fresh
Open
Nobody has claimed this yet.
kind/feature
status/triage
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
Currently, poetry will just print a warning if the lockfile isn't fresh. I'd like an option for this to be a fatal error (poetry exits w/ nonzero error code) so that I can fail my CI pipeline.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at poetry/installation/installer.py lines 241-248, where Poetry currently warns about a stale lockfile. Trace how command options reach this path, then add the requested opt-in behavior so a stale lockfile produces a nonzero exit status suitable for CI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100