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

Fix DependencyComputer missing bundles when they have different versions #2841

Merged

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Sep 19, 2023

Currently the DependencyComputer sorts only by bundle name (even though the comment for the code mentions the version as well) this can lead to the situation that if a bundle requires the same bundle in different versions (e.g. because it has actually different package names like javax -> jakarta) it only gets one of both on the classpath even though the P2 input suggests both.

This simply enhances the used key in the mak with the version as already suggested by the java comment.

Currently the DependencyComputer sorts only by bundle name (even though
the comment for the code mentions the version as well) this can lead to
the situation that if a bundle requires the same bundle in different
versions (e.g. because it has actually different package names like
javax -> jakarta) it only gets one of both on the classpath even though
the P2 input suggests both.

This simply enhances the used key in the mak with the version as already
suggested by the java comment.
@laeubi laeubi added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Sep 19, 2023
@github-actions
Copy link

Test Results

   561 files  ±0     561 suites  ±0   5h 4m 17s ⏱️ + 3m 50s
   362 tests ±0     356 ✔️ ±0    6 💤 ±0  0 ±0 
1 086 runs  ±0  1 067 ✔️ ±0  19 💤 ±0  0 ±0 

Results for commit ce7e249. ± Comparison against base commit 234f4f9.

@laeubi laeubi merged commit 1500f0c into eclipse-tycho:master Sep 19, 2023
9 checks passed
@github-actions
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants