-
Notifications
You must be signed in to change notification settings - Fork 0
Flip incompatible_disable_autoloads_in_main_repo #28
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| load("@rules_python//python:py_library.bzl", "py_library") | ||
|
|
||
| filegroup( | ||
| name = "srcs", | ||
| srcs = glob(["*.py"]) + [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -149,7 +149,7 @@ public final class BuildLanguageOptions extends OptionsBase { | |||||||
|
|
||||||||
| @Option( | ||||||||
| name = "incompatible_disable_autoloads_in_main_repo", | ||||||||
| defaultValue = "false", | ||||||||
| defaultValue = "true", | ||||||||
| documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS, | ||||||||
| effectTags = {OptionEffectTag.LOADING_AND_ANALYSIS}, | ||||||||
| metadataTags = {OptionMetadataTag.INCOMPATIBLE_CHANGE}, | ||||||||
|
|
@@ -950,7 +950,7 @@ public StarlarkSemantics toStarlarkSemantics() { | |||||||
| public static final String INCOMPATIBLE_STOP_EXPORTING_LANGUAGE_MODULES = | ||||||||
| "-incompatible_stop_exporting_language_modules"; | ||||||||
| public static final String INCOMPATIBLE_DISABLE_AUTOLOADS_IN_MAIN_REPO = | ||||||||
| "-incompatible_disable_autoloads_in_main_repo"; | ||||||||
| "+incompatible_disable_autoloads_in_main_repo"; | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flag Reference InconsistencyThe flag reference is changed from negative to positive prefix, but the flag name itself still contains 'incompatible_'. This creates inconsistent behavior between the flag's default value and its reference pattern, potentially causing configuration errors. Commitable Suggestion
Suggested change
Standards
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flag Name InconsistencyThe flag name prefix is changed from minus to plus, indicating a change in the default behavior. This should be documented with a comment explaining the semantic change and its impact on build configurations. Standards
|
||||||||
| public static final String INCOMPATIBLE_ALLOW_TAGS_PROPAGATION = | ||||||||
| "+incompatible_allow_tags_propagation"; | ||||||||
| public static final String EXPERIMENTAL_BUILTINS_DUMMY = "-experimental_builtins_dummy"; | ||||||||
|
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.
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.
Default Flag Mismatch
The incompatible_disable_autoloads_in_main_repo flag's default value is changed from false to true, but the flag name still has the 'incompatible_' prefix. This creates inconsistent behavior as incompatible flags are typically temporary and meant to be removed after migration.
Commitable Suggestion
Standards