Replies: 3 comments 21 replies
-
I would say that p2 should not add references from p2-repositories to the |
Beta Was this translation helpful? Give feedback.
-
Just want to put this on a different thread to not confuse things. The reason why Tycho works this way is because it is not a general filtering / modify repository action, this is supposed to remove otherwise required items (IUs+artifacts) and instead consume them from the original source! So having filtered but not adding a reference clearly makes no sense here, because then you will create a site that is missing items that a required and you can't install any software from that site anymore! |
Beta Was this translation helpful? Give feedback.
-
I have now addressed the problem with "surprising sites" here: with that all described issues here will vanish because even though the JustJ is referenced it will not be used to search for updates (as long as the user not adding it explicitly). |
Beta Was this translation helpful? Give feedback.
-
Using
<repository-reference>
incategory.xml
<addIUTargetRepositoryReferences>
with Tycho (https://github.com/eclipse-tycho/tycho/blob/master/RELEASE_NOTES.md#new-option-to-filter-added-repository-references-when-assembling-a-p2-repository)is a way to declare additional dependencies and not shipping them.
This causes p2 update sites to be added to user's installation, whenever a check-for-update operation is performed.
However, it also has some drawbacks:
Do we really want all those update sites with explicit versions to accumulate over time? There is no 'removal mechanism' when the 'parent' update site does not refer to them anymore.
.../latest
) instead of fixed (.../vX.Y
) update site URLs as dependencies, this can cause implicit, unintended updates of the IDE (also Installing Wild Web Developer tools forces update of JustJ and Platform to latest version eclipse-wildwebdeveloper/wildwebdeveloper#1380).I feel like the usage of repository references has some caveats.
Beta Was this translation helpful? Give feedback.
All reactions