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

test(manager): manager need to exports updateDependency or extractPackageFile when exporting extractAllPackageFiles #27954

Merged
merged 4 commits into from Mar 15, 2024

Conversation

Shegox
Copy link
Contributor

@Shegox Shegox commented Mar 15, 2024

Changes

This PR adjust the manager validation to check that each manager, which exports extractAllPackageFiles must as well export updateDependency or extractPackageFile.

This is required because Renovate will use extractPackageFile to check if a dependency got successfully updated. Without having extractPackageFile exported Renovate can't perform updates. The alternative for this is that a manager provides an own updateDependency method. Then extractPackageFile is not needed.

Context

Found this as part of the investigation of #27935 and the fix #27953

Requires #27953 to be merged for tests to pass is merged and tests are passing now

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

…xtractPackageFile` when exporting `extractAllPackageFiles`
@rarkins rarkins requested a review from viceice March 15, 2024 13:46
@rarkins rarkins enabled auto-merge March 15, 2024 13:46
Co-authored-by: Vivien Tintillier <vtintillier.privatedev@gmail.com>
auto-merge was automatically disabled March 15, 2024 14:05

Head branch was pushed to by a user without write access

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but failed test

@Shegox Shegox requested a review from viceice March 15, 2024 20:32
@viceice viceice changed the title fix(manager/test): test that manager exports updateDependency or extractPackageFile when exporting extractAllPackageFiles test(manager): test that manager exports updateDependency or extractPackageFile when exporting extractAllPackageFiles Mar 15, 2024
@viceice viceice changed the title test(manager): test that manager exports updateDependency or extractPackageFile when exporting extractAllPackageFiles test(manager): manager need to exports updateDependency or extractPackageFile when exporting extractAllPackageFiles Mar 15, 2024
@viceice viceice added this pull request to the merge queue Mar 15, 2024
Merged via the queue into renovatebot:main with commit 5075318 Mar 15, 2024
35 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.250.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 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.

None yet

4 participants