-
-
Notifications
You must be signed in to change notification settings - Fork 286
Introduce build setting for current Scala version #1558
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
Conversation
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.
Thanks. Overall looks good. Please check minor comments.
Also big thanks for
that was puzzling me in previous pr. |
scala_config.bzl
Outdated
@@ -39,8 +50,19 @@ def _store_config(repository_ctx): | |||
"ENABLE_COMPILER_DEPENDENCY_TRACKING=" + enable_compiler_dependency_tracking, | |||
]) | |||
|
|||
build_file_content = "\n".join([ | |||
'load("@bazel_skylib//rules:common_settings.bzl", "string_flag")', | |||
"string_flag(", |
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.
Maybe we should keep this as string_setting
for now and do not allow to change this via command line? wdyt?
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.
Indeed, I see no use case for a flag at the moment.
Co-authored-by: mkuta <[email protected]>
Updated the name of config setting as suggested in #1559 (comment) |
Description
Build setting & config setting to transition and query about the Scala version.
A small change compared to #1552 is that I don't allow an empty string value for the build setting.
This shouldn't change any behavior.
Motivation
Originally #1290.
Partitioned from #1552.