Skip to content
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

scalafix 0.10.1 #560

Merged
merged 4 commits into from
Jul 16, 2022
Merged

Conversation

bjaglin
Copy link
Member

@bjaglin bjaglin commented Jul 15, 2022

Closes #550
Closes #537
Follows #513 (comment)

As of sbt-scalafix 0.10.0, scala version is no longer overriden by scalafixEnable, so running with ++2.12.10 would result in "type nowarn is not a member of package annotation" as nowarn was introduced in 2.12.13 and sbt macros generate code that uses it.

[error] /home/runner/work/munit/munit/munit-sbt/src/main/scala/munit/sbtmunit/MUnitPlugin.scala:42:21: type nowarn is not a member of package annotation
[error]     munitBucketName := Some("munit-test-reports"),

scalameta-bot and others added 4 commits June 15, 2022 00:32
As of sbt-scalafix 0.10.0, scala version is not overriden by
scalafixEnable, so running with ++2.12.10 would result in
"type nowarn is not a member of package annotation" as nowarn
was introduced in 2.12.13 and sbt macros generate code that
uses it
@@ -41,11 +41,11 @@ mimaPreviousArtifacts := Set.empty
crossScalaVersions := List()
addCommandAlias(
"scalafixAll",
"; ++2.12.10 ; scalafixEnable ; all scalafix test:scalafix"
Copy link
Member Author

@bjaglin bjaglin Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before scalacenter/sbt-scalafix#292, the patch version was ignored as sbt-scalafix uses to set its own version (2.13 or later, containing nowarn, and thus building fine with recent versions of sbt using that nowarn)

@bjaglin bjaglin marked this pull request as ready for review July 15, 2022 20:57
Copy link
Collaborator

@valencik valencik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this :)

@valencik valencik merged commit 119f3eb into scalameta:main Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants