-
Notifications
You must be signed in to change notification settings - Fork 193
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
forceContextQualifier has been broken since Tycho 4.0.5 #3809
Comments
I cannot reproduce. The example builds fine for me with all versions from 4.0.5 to 5.0.0-SNAPSHOT using your command line. Windows 10, Java 21. That being said, I'm not sure whether the mentioned commit is the one to blame. Given that we see a recursion from a relative path pointing to itself again and again, this might also be related to 5782054, where the file and path handling was refactored. You may want to experiment locally with reverting parts of that, or with adding some more "toRealPath()" calls to avoid the repeated relative paths. |
@Bananeweizen Yes, the build may finish, but that doesn't mean there is no bug. If you run the build with This is a blocker issue for us. We are currently stuck with Tycho 4.0.4 and can't upgrade to later versions. But we need to upgrade because Tycho 4.0.4 only supports Java versions up to 20 and we want to switch Java 17 to Java 21. |
* Normalize path before using it as key in a cache lookup (to avoid /foo/../a to be different than /a) * stop recursion if parent model is identical to child model fixes eclipse-tycho#3809
@Bananeweizen, thank you for such a quick fix! |
There is an infinite recursion in
AbstractTychoMapping.modelHasProperty
if Tycho build is called with-DforceContextQualifier
.Steps to reproduce:
mvn clean verify -DskipTests -DforceContextQualifier=100500
pom.xml
and.mvn/extensions.xml
mvn clean verify -DskipTests -DforceContextQualifier=100500
againThe bug was introduced in this commit by @laeubi: #3320.
If you run mvn with
-X
, you will notice many lines like these:The text was updated successfully, but these errors were encountered: