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

Broken SBT export #3031

Closed
yadavan88 opened this issue Jul 16, 2024 · 0 comments · Fixed by #3032
Closed

Broken SBT export #3031

yadavan88 opened this issue Jul 16, 2024 · 0 comments · Fixed by #3032
Labels
bug Something isn't working experimental Tickets tied to experimental features. export issues tied to the export sub-command

Comments

@yadavan88
Copy link
Contributor

Version(s)
version: 1.4.0

Describe the bug
When exporting the scala-cli project to sbt (and possibly the same for mill), the build configuration for scalaVersion is generating wrongly if the full scala version is not used in the directive

To Reproduce
Sample.scala file

//> using scala 3
@main def main = println("Hello!")

Export using:
scala-cli --power export Sample.scala --sbt

try to run this sbt project using sbt run. It fails due to the build.sbt having wrong scala version:

scalaVersion := "3"

Expected behaviour
It should be scalaVersion := "3.3.4" probably the lts version. It could be having the same issue in mill export as well.

@yadavan88 yadavan88 added the bug Something isn't working label Jul 16, 2024
@Gedochao Gedochao added experimental Tickets tied to experimental features. export issues tied to the export sub-command labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working experimental Tickets tied to experimental features. export issues tied to the export sub-command
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants