-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add scala-cli version to the BuildInfo #3617
base: main
Are you sure you want to change the base?
Conversation
@Gedochao Here is the PR for adding scala-cli version to buildInfo. Could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented on some nitpicks.
Also, please include a test.
modules/options/src/main/scala/scala/build/info/BuildInfo.scala
Outdated
Show resolved
Hide resolved
@@ -51,6 +51,8 @@ object BuildInfo { | |||
val mainClass = Some("Main") | |||
/** Project version */ | |||
val projectVersion = None | |||
/** Scala-cli version used for the compilation */ | |||
val scalaCliVersion = Some("1.1.1-SNAPSHOT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mental note, that this doc should get updated with some more modern values =)
val scalaCliVersion = Some("1.1.1-SNAPSHOT") | |
val scalaCliVersion = Some("1.7.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Gedochao I fixed the tests in SourceGeneratorTests, I hope that is the only place.
Also, since the constants file was not accessible there, i hardcoded the version 1.1.1-SNAPSHOT in the test. Is it ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Gedochao Could you review this once again. I think there are some test failures, will have a look at it once again. But is the other changes ok?
Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>
…van88/scala-cli into buildinfo-scala-cli-version
Add a variable for the scalaCliVersion in the generated BuildInfo