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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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?

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.

2 participants