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

Pass scalaVersion to Scalafix as needed for Scalafix 0.13.0 #205

Merged
merged 8 commits into from
Sep 30, 2024

Conversation

lolgab
Copy link
Collaborator

@lolgab lolgab commented Sep 30, 2024

  • Run all integration tests
  • deprecate scalafixScalaBinaryVersion in favor of scalaVersion
  • deprecate fixAction overloads which take scalaBinaryVersion as a parameter

Pull Request: #205

@lolgab lolgab mentioned this pull request Sep 30, 2024
Copy link
Contributor

@bjaglin bjaglin left a comment

Choose a reason for hiding this comment

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

Thanks! Just some minor comments but LGTM overall 👍

itest/src/fix-3.5/project/src/Fix.scala Outdated Show resolved Hide resolved
@@ -63,6 +66,7 @@ object ScalafixModule {
os.pwd
)

@nowarn("msg=parameter scalaBinaryVersion in method fixAction is never used")
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume you left the parameter for binary compatibility in the patch line? Nitpicking: we could create an overload (easier to clear later) and get rid of the propagation of scalafixScalaBinaryVersion for the real code path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

itest/src/fix-3.5/build.sc Outdated Show resolved Hide resolved
Comment on lines +61 to +64
PathRef(sources().head.path / "fix-2.12") -> Seq(
TestInvocation.Targets(Seq("__.fix")),
TestInvocation.Targets(Seq("verify"))
),
Copy link
Contributor

Choose a reason for hiding this comment

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

I just saw tests were failing because of that boyscout-rule addition, independently of the actual purpose of this PR 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The tests were not running. I could do this in a separate PR but honestly I don't see the reason.

@lolgab lolgab marked this pull request as ready for review September 30, 2024 11:31
@lolgab lolgab requested a review from joan38 September 30, 2024 13:10
bjaglin-swile

This comment was marked as duplicate.

@lolgab lolgab changed the title Pass scalaVersion to Scalafix as needed for Scalafix 0.13.0 Pass scalaVersion to Scalafix as needed for Scalafix 0.13.0 Sep 30, 2024
@lolgab lolgab changed the title Pass scalaVersion to Scalafix as needed for Scalafix 0.13.0 Pass scalaVersion to Scalafix as needed for Scalafix 0.13.0 Sep 30, 2024
@lolgab lolgab merged commit 54b8d07 into joan38:main Sep 30, 2024
1 check passed
@lolgab lolgab deleted the pass-scalaVersion-scalafix branch September 30, 2024 14:24
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