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

Find reactor projects by location even if their file location changed #4658

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Jan 29, 2025

Currently we cache the "known location" for an artifact, but for a reactor project this location can change (e.g. when it is finally packed to a jar). This leads to the unfortunate situation that we probably no longer find it in the map.

This now first lookup the project with the map key, but if it is not found performs a deeper analysis of the artifacts and check if the location actually maps to the artifact location of the reactor project. If that is the case we use that instead of return nothing.

Fix #4653

Currently we cache the "known location" for an artifact, but for a
reactor project this location can change (e.g. when it is finally packed
to a jar). This leads to the unfortunate situation that we probably no
longer find it in the map.

This now first lookup the project with the map key, but if it is not
found performs a deeper analysis of the artifacts and check if the
location actually maps to the artifact location of the reactor project.
If that is the case we use that instead of return nothing.

Fix eclipse-tycho#4653
@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 Jan 29, 2025
@laeubi laeubi enabled auto-merge (rebase) January 29, 2025 17:40
Copy link

Test Results

  606 files  ±0    606 suites  ±0   4h 42m 57s ⏱️ + 31m 10s
  434 tests ±0    426 ✅  - 1   7 💤 ±0  1 ❌ +1 
1 302 runs  ±0  1 279 ✅  - 1  22 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 886d758. ± Comparison against base commit ad84679.

@laeubi laeubi merged commit 4d75930 into eclipse-tycho:main Jan 29, 2025
14 of 16 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

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.

Question regarding build classpath resolution problem with Tycho 4
2 participants