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

fix(gradle-lite): Upgrade deps in reverse order for grouped dependencies #8263

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

zharinov
Copy link
Collaborator

Changes:

Copy fileReplacePosition from managerData, so it will be recognized by mechanism we recently used for this problem in other Maven-based managers.

Context:

Closes #8224

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 tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • Unit tests + ran on a real repository

@zharinov
Copy link
Collaborator Author

): PackageDependency<ManagerData>[] {
return deps.map((dep) => ({
...dep,
fileReplacePosition: dep?.managerData?.fileReplacePosition,
Copy link
Collaborator Author

@zharinov zharinov Jan 12, 2021

Choose a reason for hiding this comment

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

Why instead not make sure we use managerData everywhere? Because I'm not sure this field will be available from all the places where fileReplacePosition is needed. Potentially, maybe it can be pretty big refactoring for the thing which is pretty hacky.

@rarkins rarkins merged commit ec104ac into renovatebot:master Jan 12, 2021
@rarkins rarkins deleted the fix/gradle-lite-grouped-deps branch January 12, 2021 13:42
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.16.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Gradle update fails when using gradle-lite with specific dependencies
3 participants