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(manager/gradle): correct execution order for buildscript dependencies in lockfiles #20303

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

Churro
Copy link
Collaborator

@Churro Churro commented Feb 8, 2023

Changes

Changes the order when the updated build file is written to ensure the list of subprojects is read still before any update happens. This is needed to support buildscript dependencies, which are processed earlier than regular deps. Without this change, gradle detects a discrepany between build and lock files and fails.

Context

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

Test repo: https://github.com/renovate-demo/20289-renovate-gradle-lock-file-example/pull/1/files

@viceice viceice requested a review from zharinov February 8, 2023 22:13
@rarkins rarkins merged commit 766cc3a into renovatebot:main Feb 9, 2023
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 34.128.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Renovate does not update buildscript-gradle.lockfile
4 participants