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 [DS] Validation of transitive generated 'osgi.extender=osgi.component' requirement fails #3897

Merged
merged 2 commits into from
Jun 8, 2024

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented May 31, 2024

Currently Tycho always uses the INITIAL dependency metadata to compute
the preliminary target platform. As this metadata can change once the
project is packed (e.g. headers added / removed) this can lead to
problems in plugins that depend on the changed plugin because P2 sees
the updated metadata afterwards and fails.

This now distinguish both cases and used the SEED metadata if the
project was already packed.

Fix #3824

@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 May 31, 2024
@laeubi laeubi enabled auto-merge (rebase) May 31, 2024 08:15
@laeubi laeubi disabled auto-merge May 31, 2024 08:36
Copy link

github-actions bot commented May 31, 2024

Test Results

  597 files  ±0    597 suites  ±0   3h 58m 55s ⏱️ +7s
  427 tests +1    420 ✅ +1   7 💤 ±0  0 ❌ ±0 
1 281 runs  +3  1 259 ✅ +3  22 💤 ±0  0 ❌ ±0 

Results for commit b913061. ± Comparison against base commit b88a16e.

♻️ This comment has been updated with latest results.

@laeubi laeubi force-pushed the pr-3832-ds-missing-cap branch 2 times, most recently from d8ea9ae to ec590ad Compare June 1, 2024 05:42
@laeubi laeubi force-pushed the pr-3832-ds-missing-cap branch 2 times, most recently from 5f1d631 to f99d3cc Compare June 6, 2024 14:05
HannesWell and others added 2 commits June 8, 2024 15:51
Add a minimal reproducer test-case for issue
eclipse-tycho#3824

regarding the validation failure of transitive generated
'osgi.extender=osgi.component' requirements in bundles containing DS
components of version 1.4.
Currently Tycho always uses the INITIAL dependency metadata to compute
the preliminary target platform. As this metadata can change once the
project is packed (e.g. headers added / removed) this can lead to
problems in plugins that depend on the changed plugin because P2 sees
the updated metadata afterwards and fails.

This now distinguish both cases and used the SEED metadata if the
project was already packed.

Fix eclipse-tycho#3824
@laeubi laeubi enabled auto-merge (rebase) June 8, 2024 13:52
@laeubi laeubi merged commit fc91332 into eclipse-tycho:main Jun 8, 2024
11 checks passed
@eclipse-tycho-bot
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

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

1 similar comment
@eclipse-tycho-bot
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Note: Successful backport PRs will be merged automatically after passing CI.

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.

[DS] Validation of transitive generated 'osgi.extender=osgi.component' requirement fails
3 participants