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

add sbt 2.x cross build setting #332

Merged
merged 1 commit into from
Oct 19, 2024
Merged

add sbt 2.x cross build setting #332

merged 1 commit into from
Oct 19, 2024

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Oct 18, 2024

No description provided.

@xuwei-k xuwei-k marked this pull request as ready for review October 18, 2024 23:37
Copy link
Contributor

@kitbellew kitbellew left a comment

Choose a reason for hiding this comment

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

@xuwei-k what is this change for?

@tgodzik can you please review? this is not something I'm familiar with.

@@ -4,7 +4,9 @@ import java.io.OutputStreamWriter
import java.nio.file.Path

import sbt.Keys._
import sbt._
// format: off
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this necessary? if this is scala3 syntax, better to modify scalafmt configuration, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

imports {
expand = true

without this comment expand import

- import sbt.{given, _}
+ import sbt._
+ import sbt.given

but error if Scala 2.12

Copy link
Contributor

Choose a reason for hiding this comment

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

is this is an unreported bug in scalafmt?

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Look good as far as I can see. Thanks @xuwei-k !

@kitbellew kitbellew merged commit f512f88 into scalameta:main Oct 19, 2024
2 checks passed
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