-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(manager/pip-compile): Allow security updates for indirect dependencies #26871
feat(manager/pip-compile): Allow security updates for indirect dependencies #26871
Conversation
Now package files are infered from command embeded in output file header. This should enable support for additional package managers that use files like setup.py, setup.cfg and those conforming to PEP 621. Command extraction from header has been moved to common module, as it will be reused in lockedDependencyUpdate and other functions.
8fb8706
to
4d48432
Compare
Allow extraction and parsing but don't contruct command if custom
e8f4b8a
to
7588b6e
Compare
```json | ||
{ | ||
"pip_requirements": { | ||
"enabled": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if a repository uses both requirements.in
for its main dependencies, and requirements.txt
for say, docs/requirements.txt
? This needs a better suggestion that allows using both at the same time. Does renovate support filepath exclusion for a manager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And massive thanks for your efforts to improve the pip-compile
manager 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to create support to support relative paths and other cases. Please see #26858, as this is the main PR, and this is a draft concerned with indirect deps.
This PR depends on #26858, meanwhile review these commits https://github.com/renovatebot/renovate/pull/26871/files/1ecf6654ac63cb5fdafd54a90e3f3f7c38cd1b57..HEAD
Changes
Every extracted dependency gets assigned
lockedVersion
from lock file. Warning is raised if there is no lock.If locked dependency is not present it is added to
PackageFileContent
as indirectdepType
.WIP, pass indirect deps to
updateLockedDependency
Context
#24725 (comment)
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: