-
Notifications
You must be signed in to change notification settings - Fork 43
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
Race condition in the dependencies of the osgiBundle task #75
Comments
@romainreuillon Should I assign you this issue? I noticed that you made some PR's on this topic so you seem to know the most about this problem |
I thought that too, but if I understood @mdedetrich correctly, sbt-osgi |
@romainreuillon I have already merged that PR and made a release of sbt-osgi ( |
Maybe you can try and replicate it on your end, if it did end up solving the issue for you maybe we have multiple issues (and/or I didn't test correctly in which case I would do it again). |
@mdedetrich Can you post the error and/or give a link the the build logs? |
The core issue is here apache/pekko#757 but the error I get is apache/pekko#745 (comment), i.e. there appears to be multiple classes in the produced jar's? Let me know if I need to provide additional info |
Thanks. As stated previously in the various Akka vs. OSGi tickets, I no longer have any sbt project that uses Akka and OSGi. I still have OSGi projects but I build them with Mill now, where this issues does not occur, as Mill has a more proper cache and output concept than sbt. I do not plan to work on these issue again, but I wanted to point out potential related issues as I felt kind-of responsible, as it was my PR that introduced the race condition. I'm happy that one is fixed. I now think the multiple classes issue in unrelated. |
I think we can close this issue and assign it to version/milestone 0.9.8. |
Okay, I will do a bit more digging and/or wait for @romainreuillon response (if he has one) to confirm that we are dealing with different separate issues or a rather a single one. |
Indeed I have not encountered this kind of error message yet. |
@lefou @romainreuillon So shall I close this issue since its been confirmed that the problem Pekko is experiencing specifically is another issue and this issue is actually solved? |
@mdedetrich Yeah, this issue is fixed now. Thank you for re-adding the tests. |
The race is very well analyzed in this issue, so please read that issue completely.
The issue was introduces as part of this change
Some known documented occurence of this issue are
The applied workaround in these issues was to downgrade to sbt-osgi 0.9.4, but said version does not work with Java 17 and newer.
Here are some solutions:
Import-Package
statements. This is effectively a way to switch Use dependencies as JARs for force proper manifests (fixes #60) #64 on and off. We could default tooff
. Also, it should come with some documentation.The text was updated successfully, but these errors were encountered: