-
Notifications
You must be signed in to change notification settings - Fork 92
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
Travis builds for 2.13.0 fail #298
Comments
Other than removing @avdv do you have any advice? |
Hi @mccartney, I could reproduce the problem locally. The problem is coursier in combination with scalatest, which seems to depend on scala-reflect 2.13.1, which evicts the scala-refelect 2.13.0 with which the test code was compiled with:
When disabling coursier for the build with
|
Hm. Good finding!
|
I would just disable coursier. There are still too many problems, IMO. That's the reason our team jumped back to SBT 1.2.8.
Wait, what? Why not? |
Maybe, another workaround would be to split source files into
That interface might be stable between Scala 2.13.0 and 2.13.1... |
Ah. OK, so we have more options:
|
Do you mean to have a duplicate copy of the whole source code? |
That's only test code, so I am thinking we could consider doing something ugly like (pseudo-code):
as long as it compiles statically. |
No, you can separate single source files and spread them out into But, I think in this case it will not work, since the incompatiblity is between Scala 2.13.0 and 2.13.1 with coursier being the culprit of mixing up the dependencies.
The problem is that it would not compile if you try a different way of accessing it, when at runtime it is all different. We could probably resort to reflection... |
That would just cause dependency resolution and fetching to be done like in SBT < 1.3.x. |
Sorry for the confusion @mccartney, I haven't really checked and for some reason I assumed it wasn't published for 2.13 🤔 It sounds sensible to disable coursier for now until this issue gets resolved. It would be worth reporting upstream. I've come across a few similar issues before, I'm sure there's already one tracking this :) |
Also, there is this bug: coursier/coursier#1382 which causes test dependencies to be used for publishing. Which would probably mean that even if you could work around the problem in the test here, it would probably just fail at runtime for 2.13.0 everywhere else. |
This is something to investigate for latest
master
:2.13.0
fail with the error message pasted below2.13.1
works fine in TravisLocal behavior is the same.
Error message:
The text was updated successfully, but these errors were encountered: