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

Not printing correct scala 3 version #208

Closed
francisdb opened this issue Aug 2, 2022 · 0 comments
Closed

Not printing correct scala 3 version #208

francisdb opened this issue Aug 2, 2022 · 0 comments

Comments

@francisdb
Copy link
Collaborator

francisdb commented Aug 2, 2022

At some point in the docker build we do a sanity check but that actually prints the scala library version on Scala 3

see scala/scala3#15796 (comment)

we might be able to use

scala> dotty.tools.dotc.config.Properties.simpleVersionString
val res0: String = 3.0.1

more context at
https://stackoverflow.com/questions/6967788/how-to-retrieve-scalas-version-in-repl

and a more elaborate check is available here but we probably want to stick to a one-liner that just validates we can compile some code
https://gist.github.com/romanowski/de14691cab7340134e197419bc48919a

scala --version
Scala code runner version 2.13.8 -- Copyright 2002-2021, LAMP/EPFL and Lightbend, Inc.

scala --version
Scala code runner version 3.1.3 -- Copyright 2002-2022, LAMP/EPFL
kijuky added a commit to kijuky/docker-sbt that referenced this issue Aug 6, 2022
@francisdb francisdb mentioned this issue Aug 26, 2024
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

No branches or pull requests

1 participant