-
Notifications
You must be signed in to change notification settings - Fork 115
IVY-1662: collect updates by conf and check transitive on old dependency #108
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
base: master
Are you sure you want to change the base?
Conversation
|
The output is now grouped by configuration. |
|
The old behavior was to include dependnecies from other confs, so this is a step forward in preventing leakage. IMO it needs to be grouped in this way since the confs may have different inclusions, exclusions and resolution. I'm not sure what backwards compatible concern there is for a task that logs. The conf labels are the only addition. |
ccd9ce5 to
2da0a98
Compare
bc34aff to
2db6631
Compare
|
@maartenc I split the prep. and refactor out from the main change. You can review and cherry-pick this first: dc15671 If you want, I can create a separate PR for it. If you are oaky with the main change then I can make this PR ready for review and you would then just use GH UI "Rebase and merge" to preserve the separate commits. Otherwise, I suppose you could cherry-pick both changes to your own branch and add the release notes entry. Or do you want me to include release notes entry with each bug fix? |
|
I do not have a test that shows the behavior change. The scenario described above works like this: <ivy-module>
<info organisation="foo" module="bar" />
<configurations>
<conf name="main" />
<conf name="build" visibility="private"
description="Artifacts necessary for Ant build" />
</configurations>
<dependencies defaultconf="main" defaultconfmapping="*->master,runtime()">
<dependency org="org.apache.commons" name="commons-lang3" rev="3.18.0" />
<dependency org="net.sourceforge.cobertura" name="cobertura" rev="2.1.1" conf="build" />
</dependencies>
</ivy-module><ivy:checkdepsupdate conf="main" revisiontocheck="latest.release" />Before After |
|
Given a few confs with updates, the output looks like this now: |
2db6631 to
2a609f7
Compare
|
@maartenc I restored the two test assertions you commented on and then they change in the second commit to demonstrate behavior differences. You can review each commit separately using the Commits tab. If you're okay with both, GH UI provides a means to merge while preserving the separate commits -- just don't use "squash" option. |
|
Yes I saw it, it already looked at it and thought it was ok. |
|
@maartenc Hope all is well. I would like to get this and a few other bugs fixed. I've been left in a holding pattern since September. |
The
ivy:checkdepsupdatetask should examine dependencies by conf so that it does not report on a dependency in another conf that has an update. For example, iforg.dom4j:dom4j:2.2.0is in "conf1" andcom.github.spotbugs:spotbugs-ant:4.9.3is in "conf2" there is a transitive dependency toorg.dom4j:dom4j:2.1.4. With<ivy:checkdepsupdate conf="conf1" revisionToCheck="latest.release" showTransitive="false" />there is a line "org.dom4j#dom4j 2.1.4 -> 2.2.0".https://issues.apache.org/jira/browse/IVY-1662