-
Notifications
You must be signed in to change notification settings - Fork 502
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
Compile with Scala 3 #2065
Compile with Scala 3 #2065
Conversation
The Scala 3 build fails with:
It seems we're hitting scala/scala3#11173 here. |
The following dependencies are currently not available for Scala 3:
|
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2065 +/- ##
==========================================
+ Coverage 89.73% 89.78% +0.05%
==========================================
Files 171 171
Lines 3536 4983 +1447
Branches 321 504 +183
==========================================
+ Hits 3173 4474 +1301
- Misses 363 509 +146 ☔ View full report in Codecov by Sentry. |
This is in preparation for compiling with Scala 3 and prevents warnings about pattern bindings with refutable patterns like this: ``` -- Warning: modules/core/src/test/scala/org/scalasteward/core/update/PruningAlgTest.scala:218:27 218 | val Right(repoCache) = decode[RepoCache]( | ^ |pattern's type Right[io.circe.Error, org.scalasteward.core.repocache.RepoCache] is more specialized than the right hand side expression's type Either[io.circe.Error, org.scalasteward.core.repocache.RepoCache] | |If the narrowing is intentional, this can be communicated by adding `: @unchecked` after the expression, |which may result in a MatchError at runtime. |This patch can be rewritten automatically under -rewrite -source 3.2-migration. ``` The changes here we done by the Scala 3 compiler by using the `-rewrite -source 3.2-migration` options. Relevant documentation: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-bindings.html The changes here are another large chunk of #2065 and have been cherry-picked from that branch.
This is in preparation for compiling with Scala 3 and prevents warnings about pattern bindings with refutable patterns like this: ``` -- Warning: modules/core/src/test/scala/org/scalasteward/core/update/PruningAlgTest.scala:218:27 218 | val Right(repoCache) = decode[RepoCache]( | ^ |pattern's type Right[io.circe.Error, org.scalasteward.core.repocache.RepoCache] is more specialized than the right hand side expression's type Either[io.circe.Error, org.scalasteward.core.repocache.RepoCache] | |If the narrowing is intentional, this can be communicated by adding `: @unchecked` after the expression, |which may result in a MatchError at runtime. |This patch can be rewritten automatically under -rewrite -source 3.2-migration. ``` The changes here we done by the Scala 3 compiler by using the `-rewrite -source 3.2-migration` options. They are another large chunk of #2065 that have been cherry-picked from that branch. Relevant documentation: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-bindings.html
Closing in favor of #3527. |
No description provided.