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

Run dependency actions on entire hierarchy #24280

Conversation

jvandort
Copy link
Member

@jvandort jvandort commented Mar 10, 2023

Make sure we run the dependency actions on the entire hierarchy before traversing that hierarchy for dependencies and excludes. This is because the dependency actions may themselves modify the hierarchy, so before traversing we need to make sure the hierarchy isn't going to change out from under us.

This should be fine since configurations' dependency actions are idempotent. The actions automatically de-register themselves, so once they're called, they're not triggered for subsequent calls.

Fixes: #24234

@jvandort jvandort added the a:bug label Mar 10, 2023
@jvandort jvandort self-assigned this Mar 10, 2023
…cies

Make sure we run the dependency actions on the entire hierarchy before traversing that hierarchy
for dependencies and excludes. This is because the dependency actions may themselves modify the hierarchy,
so before traversing we need to make sure the hierarchy isn't going to change out from under us.

This should be fine since configurations' dependency actions are idempotent. The actions automatically
de-register themselves, so once they're called, they're not triggered for subsequent calls.
@jvandort jvandort force-pushed the jvandort/iss/24234/run-dependency-actions-on-entire-hierarchy branch from c4fdb51 to 4694d35 Compare March 11, 2023 02:10
@jvandort jvandort added this to the 8.2 RC1 milestone Mar 11, 2023
@jvandort jvandort marked this pull request as ready for review March 11, 2023 02:10
@jvandort jvandort requested a review from a team as a code owner March 11, 2023 02:10
@jvandort
Copy link
Member Author

@bot-gradle test this

@bot-gradle
Copy link
Collaborator

I've triggered the following builds for you:

@jvandort
Copy link
Member Author

@bot-gradle test and merge

@bot-gradle
Copy link
Collaborator

I've triggered a build for you.

@bot-gradle bot-gradle merged commit 2e7fee1 into master Mar 13, 2023
@bot-gradle bot-gradle deleted the jvandort/iss/24234/run-dependency-actions-on-entire-hierarchy branch March 13, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7.6.1 breaks gradle-consistent-versions
3 participants