-
Notifications
You must be signed in to change notification settings - Fork 189
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
TychoGraphBuilder: -amd should pick up dependencies of dependants #608
Conversation
tycho-build/src/main/java/org/eclipse/tycho/build/TychoGraphBuilder.java
Outdated
Show resolved
Hide resolved
I'm not sure about this as I think it will imply a behaviour difference between vanilla maven vs tycho which may be unexpected by users. In general for non-linear dependency relations, both -am and -amd would typically have to be used as far as I understand it. I will just upload a demo vanilla maven project to demonstrate. |
@joeshannon I don't know as its a bit unclear how it is supposed to work. |
Yes I have to admit I am also not hugely experienced with using these options in practice outside of simple builds so I am happy to concede to other views as to how this should behave. I was approaching this by attempting to match the behaviour of a pure maven demo. Here is that demo. I'll look at adding the additional modules as presented in this PR in a bit. Whether we want to modify this behaviour in Tycho to enhance common use cases is another question I guess. |
If we want to say that this document is normative they state:
So if
Given that The interesting part would be (and that's what is not mentioned here) if we specify both options, should we only add dependencies of specified projects and what depends on them but not the dependent dependencies ...? |
@sratz it seems one test is still failing do you plan to take a look at this? |
Also add a few more integration tests. Change-Id: I0538fb5bd285c8d2d4132e95c4d44d09c5b2026c
Thanks for the testcase + fix |
-amd
in general is of little practical use in Tycho build environments that typically contain downstream features + updatesites that depend on practically everything.To make it somewhat useful (i.e. get something buildable in the first place out of it),
-amd
should pick up dependencies of dependents.Also add a few more integration tests.
Change-Id: I0538fb5bd285c8d2d4132e95c4d44d09c5b2026c