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

[tycho-4.0.x] assemble-repository: Prevent sources from being included inadvertently #3679

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

eclipse-tycho-bot
Copy link

Backport

This will backport the following commits from main to tycho-4.0.x:

Questions ?

Please refer to the Backport tool documentation

In the presence of products, P2 adds a virtual 'tooling.source.default'
IU which optionally depends on all sources.

If these sources are available in the target platform, this would cause
them to be picked up even if assemble-repository was configured with

  <includeAllDependencies>true<includeAllDependencies>

but with

  <includeAllSources>false</includeAllSources>.

This scenario has become much more likely with recent changes to P2 [1].

We do not want includeAllDependencies to imply includeAllSources, so
we actively prevent this from happening by ignoring the

  <required namespace='org.eclipse.equinox.p2.eclipse.type'
            name='source'
            range='0.0.0'
            optional='true'
            multiple='true'
            greedy='false'/>

requirements if 'includeAllSources' is not specified.

Fixes #3522.

[1] eclipse-equinox/p2#446

(cherry picked from commit 51e39d6)
Copy link

Test Results

  591 files  +3    591 suites  +3   3h 55m 54s ⏱️ + 24m 24s
  398 tests +2    392 ✅ +3   6 💤 ±0  0 ❌  - 1 
1 194 runs  +6  1 175 ✅ +7  19 💤 ±0  0 ❌  - 1 

Results for commit 1cabdee. ± Comparison against base commit 5bef150.

@eclipse-tycho-bot eclipse-tycho-bot merged commit 3f6a704 into tycho-4.0.x Mar 18, 2024
11 of 12 checks passed
@akurtakov akurtakov deleted the backport/tycho-4.0.x/pr-3635 branch May 24, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants