-
Notifications
You must be signed in to change notification settings - Fork 102
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
scalamock 7+ not uses Scala LTS #567
Comments
More info about Scala versions and development guarantees: https://www.scala-lang.org/development/ |
scalamock 6 uses scala 3 experimental features and exploits compiler bug which breaks current LTS not gives you an opportunity to add If you are afraid of migrating to at least scalamock will use next LTS (and will give guaranties on that in the future) as soon as it is released |
@goshacodes what's the compiler bug that's being exploited exactly? |
Annotation But you can omit it outside of macro scope. No annotation here, as you see. This is a bug, which allows you to use scalamock 6.x.x actually without annotating every peace of your test code with I guess, exploit word was too harsh for this one, this bug is not very scary in terms of scalamock |
So in theory, if scala LTS provided the |
I can't be sure, it is now impossible to compile even with |
No backport of experimental compiler flag to LTS from compiler team, so the issue will be open and pinned until next LTS |
I'm going to backport everything to 2.13 and downgrade scala 3 to LTS |
Scala has LTS version https://virtuslab.com/blog/technology/the-scala-3-compatibility-story/#lts-and-scala-next
It feels like for the generally used library it is better to stick to the LTS branch and and upgrade to the next one when it is absolutely necessary.
The ScalaMock 7.0.0 introduced dependency to Scala 3.4.2 which breaks builds depending on LTS Scala 3.3.x as compiler is not able to read TASTY format from the 3.4.2.
some info about versioning and binary compatibility
https://virtuslab.com/blog/technology/the-scala-3-compatibility-story/
https://docs.scala-lang.org/scala3/reference/language-versions/binary-compatibility.html
https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html
The text was updated successfully, but these errors were encountered: