-
Notifications
You must be signed in to change notification settings - Fork 77
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
clean somehow results in empty jarfiles #105
Comments
/cc @softinio who provided this clue |
Thank you for reporting! This is an odd issue. Looks like the right thing to do is to release a revert first. |
I'm surprised nobody else has reported, which makes me suspicious there's some other weird interaction in my build that's exposing it. I would definitely try to repro before reverting, I just don't know how to do so locally. |
You can try to do that locally (although note that it triggers a proper release) |
Uh, well rolling back to 1.5.0 now the 2.12 jarfiles are empty. So there's some interaction between updates to sbt, sbt-ci-release, and/or sbt-scalajs-crossproject because all three have changed since the last successful cross-build. I will investigate more and report back. |
@tpolecat if helpful to your investigation I have 1.5.0 working on multiple projects as expected with no issue with the only difference being you are using crossproject and I am not so totally you are probably right in looking into this area. Let me know if I can be of further help. |
Previously, the build published the empty "root" project causing release issues because the directory of the repo matches the module name of the `gsp-math` project, which is supposed to get published. * https://twitter.com/sjrdoeraene/status/1230773654910382080 * sbt/sbt-ci-release#105
I opened gemini-hlsw/lucuma-core#71 disabling the publish step for the root project. It's not obvious at all that I wish sbt would stop supporting the implicit "root" project. It used to be more common to use the root project but today I feel like most builds are multi-module and my impression is that the root project causes more confusion and harm than good. |
We should try to improve the documentation or error handling somehow to prevent this from happening. It should be possible to detect the scenario when the root project conflicts with the module name of another project. |
When I think of it, maybe sbt-ci-release should set |
That sounds like a reasonable default, but only if it's a multi-module project. Otherwise the root project is the one and only project you want to publish. |
To me this seems like a bug in sbt. It should not allow multiple projects to have the same name ... although I guess with scala-js you expect them to have the same name. What a mess. |
In any case thanks @olafurpg, your PR fixed it. No problem with ci-release as far as I know, sorry for the trouble. |
We have a project which publishes for JVM/JS and Scala 2.12/2.13 and with v1.5.2 of the plugin the 2.13 jarfiles are always empty! Nothing but a manifest. Works fine with v.1.5.0.
It seems that this commit 5f0ca45 causes the classfiles to get wiped out prior to 2.13 packaging. I don't understand this thing well enough to explain how that's possible but it seems to be what's happening. Possibly something happening concurrently and it's nondeterministic but probable?
The text was updated successfully, but these errors were encountered: