-
Notifications
You must be signed in to change notification settings - Fork 0
Flip incompatible_disable_autoloads_in_main_repo #5
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
The flag flip forces loads in main repository when using Bazel@HEAD. Flipping it now, so that we can disable autoloads by release of Bazel 9. PiperOrigin-RevId: 745526309 Change-Id: I7204470c08a66a15b28bc0b0c48f41d69e1694c8
|
/refacto-test |
|
Refacto is reviewing this PR. Please wait for the review comments to be posted. |
Enabling Autoloads Restriction in Main Repository👍 Well Done
📌 Files Processed
📝 Additional Comments
|
| 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent Flag Setting in Command Line Options
The PR changes the default value of 'incompatible_disable_autoloads_in_main_repo' to true but also modifies the command line flag from a negative prefix ('-') to a positive prefix ('+'). This creates inconsistency between the flag's default value and its command line representation. When a flag has a '+' prefix, it means the flag is enabled by default and can be disabled with '-'. This inconsistency could lead to confusion and potential security issues if developers mistakenly believe they've disabled autoloads when they haven't.
| public static final String INCOMPATIBLE_DISABLE_AUTOLOADS_IN_MAIN_REPO = | |
| "-incompatible_disable_autoloads_in_main_repo"; | |
| "+incompatible_disable_autoloads_in_main_repo"; | |
| public static final String INCOMPATIBLE_DISABLE_AUTOLOADS_IN_MAIN_REPO = | |
| "-incompatible_disable_autoloads_in_main_repo"; |
Standards
- CWE-1173
- Secure Configuration Management
|
/refacto-test |
|
Refacto is reviewing this PR. Please wait for the review comments to be posted. |
The flag flip forces loads in main repository when using Bazel@HEAD. Flipping it now, so that we can disable autoloads by release of Bazel 9.
PiperOrigin-RevId: 745526309
Change-Id: I7204470c08a66a15b28bc0b0c48f41d69e1694c8