Skip to content
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

Conversation

not7cd
Copy link
Contributor

@not7cd not7cd commented Jan 26, 2024

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 indirect depType.

WIP, pass indirect deps to updateLockedDependency

Context

#24725 (comment)

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@not7cd not7cd force-pushed the not7cd/pip-compile-updateIndirect branch from 8fb8706 to 4d48432 Compare January 28, 2024 16:24
@not7cd not7cd force-pushed the not7cd/pip-compile-updateIndirect branch from e8f4b8a to 7588b6e Compare February 1, 2024 15:19
```json
{
"pip_requirements": {
"enabled": false
Copy link

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?

Copy link

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 🙌

Copy link
Contributor Author

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.

@not7cd not7cd closed this Feb 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants