Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

yadavan88
Copy link
Contributor

@yadavan88 yadavan88 commented Apr 4, 2025

Add a variable for the scalaCliVersion in the generated BuildInfo

@yadavan88
Copy link
Contributor Author

@Gedochao Here is the PR for adding scala-cli version to buildInfo. Could you please review?

Copy link
Contributor

@Gedochao Gedochao left a 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.

@@ -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")
Copy link
Contributor

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 =)

Suggested change
val scalaCliVersion = Some("1.1.1-SNAPSHOT")
val scalaCliVersion = Some("1.7.1")

Copy link
Contributor Author

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?

Copy link
Contributor Author

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants