-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add a way to skip reference repositories #505
Conversation
I’ll look in detail tomorrow. I just wonder how p2 director already supports the -followReferences option (off by default) with the current implementation. https://help.eclipse.org/latest/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html I also recall when oomph’s p2 director task didn’t follow references and I had change something to enable that. That’s a few years back… |
@tivervac the value is hardcoded in the constructor but code creating the provisioning context can still override that value by calling Also note that there is another property |
This is specifically where the director application configures that: Lines 1063 to 1064 in 1b21340
So I don't think this PR is needed because one can always achieve the goal by configuring the context properties. |
As mentioned the property is private, we should make it public instead of maintain just another copy at PDE soon. |
Let's not pollute the API with convenience methods that then must interact properly with the property settings. In any case, that's not what this PR does. Note that this is public:
But this is not:
That one could and probably should be made public and that would avoid the copy in the director: But that's also not what this PR does. So we don't need this PR but a different PR to make the constant public seems helpful. |
Right, the copy is what threw me off. I did a find references on |
Settings the property works for my usecase \o/ |
Thanks for taking the time to contribute to such a complex project where it's all too easy to be thrown off by the endless details! |
Replaced by #506 |
This goes hand in hand with the PR in PDE. If there's a way to achieve this without editing the public API in
IPlanner
, I would much prefer it.Seeing how
FOLLOW_ARTIFACT_REPOSITORY_REFERENCES
was always hardcoded totrue
inProvisioningContext
, I feel like someone wanted to implement something similar at some point, but didn't get around to it.For versioning, I just followed the quick fixes, I hope this is correct.