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

Resolves #1042: Fixed set logic wrt processAllModules #1051

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

jarmoniuk
Copy link
Contributor

@jarmoniuk jarmoniuk commented Feb 17, 2024

#1042 is a pretty particular case which exposes a bug in the set logic.

The new version is initially set "to be tried out". Then, it is being set for the second time when processing changes. However, there's also some logic which is supposed to see if there are modules using the module that is being changed. This logic was responsible for the reversed change in the case of this particular issue.

When investigating, I've noticed that processAllModules has two meanings: one is to process two modules regardless whether they match the current module; the second makes the matching logic traverse the whole reactor instead of the current module's subtree in search of modules which use the current module as parent. Because of that, I have introduced a new option, fullTreeMatch, which should by default be false as I don't suppose it to be used very often.

@slawekjaranowski please review.

@slawekjaranowski
Copy link
Member

fullTreeMatch, which should by default be false as I don't suppose it to be used very often.

maybe not add new parameter ...
when we add we also should add a test which show what for and what for cases it is .used ..

@jarmoniuk jarmoniuk changed the title Resolves #1042: Fixed set logic wrt processAllModules. Introduced fullTreeMatch Resolves #1042: Fixed set logic wrt processAllModules Feb 17, 2024
@jarmoniuk jarmoniuk merged commit df6749f into mojohaus:master Feb 21, 2024
20 checks passed
@jarmoniuk jarmoniuk deleted the issue-1042-set branch February 21, 2024 19:16
@slawekjaranowski slawekjaranowski added this to the next-release milestone Feb 21, 2024
pativa pushed a commit to AvanzaBank/versions-maven-plugin that referenced this pull request Apr 15, 2024
slawekjaranowski added a commit that referenced this pull request Jul 13, 2024
slawekjaranowski added a commit that referenced this pull request Jul 13, 2024
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.

versions:set does behave wrong when parent version is the same as the version to be set
2 participants