-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add support for re-introduced warnings in scala 3.3.0 #147
Conversation
Note that this adds the specific |
@amumurst personally I would go with |
If we use |
This looks great, I would love to use this on 3.3.0. Is there a plan to get this released in the near future? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've enabled these same flags in the sbt-typelevel 0.5.0 RCs and they seem to be working well.
If a regular maintainer neither objects nor steps up I will try and get this out later this week. Sorry for the delay folks 😅
plugin/src/main/scala/io/github/davidgregory084/ScalaVersion.scala
Outdated
Show resolved
Hide resolved
"-source", | ||
"3.0-migration", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbt-typelevel was making this mistake as well. It seems this is not the sort of thing a plugin should be doing. But that will have to be fixed in another PR / breaking release.
Without the project author explicitly opting into it. I think -source is dangerous and should not be enabled without thinking through all the consequences (and ideally it should only be used temporarily during a migration)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't worry - this isn't actually enabled by default, it's just enabled in the test suite to make sure that users can manipulate options for each mode separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can merge this PR, but publishing appears to be broken 😕 if the credentials are borked which is what I suspect, I don't think I can personally fix that. One path forward would be to start publishing under |
Apologies all, I'm really struggling to make time for sbt-tpolecat - life and work are conspiring against me atm. This PR looks absolutely great though, and I think we should merge it! However, I'm not sure I can fix publishing either as I don't have access to repository level secrets in this repo anymore: I think @armanbilge is right that this means publishing under On the plus side, there is an artifact migration ready to go in Scala Steward if we decide to go with the former route. |
@typelevel/steering would one of you be able to give @DavidGregory084 admin access to this repo so they can install updated secrets? Thanks! |
@DavidGregory084 I've given you admin access in the repo settings! |
Thanks @samspills @armanbilge! Publishing creds should be fixed up now: although I no longer use LastPass, I changed my Sonatype password as a precaution after the LastPass breach. |
Thanks @amumurst! |
This PR prepares the plugin for the official scala 3.3.0 release (it is tagged, just not released quite yet https://github.com/lampepfl/dotty/releases/tag/3.3.0). It adds back all the warnings for unused and discarded values that is re-added in this release.