Skip to content

Commit

Permalink
Instead of duplicating the name, use oldName for it.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 545818305
Change-Id: Icbebf74b73121c99cc63c7dff1d1594b03285801
  • Loading branch information
meisterT authored and copybara-github committed Jul 5, 2023
1 parent 95c15c8 commit e3af34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,7 @@ public boolean useValidationAspect() {

private OutputGroupInfo.ValidationMode validationMode() {
BuildRequestOptions buildOptions = getBuildOptions();
// "and" these together so that --noexperimental_run_validation and --norun_validations work
// as expected.
boolean runValidationActions =
buildOptions.runValidationActions && buildOptions.experimentalRunValidationActions;
if (!runValidationActions) {
if (!buildOptions.runValidationActions) {
return OutputGroupInfo.ValidationMode.OFF;
}
return buildOptions.useValidationAspect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,9 @@ public class BuildRequestOptions extends OptionsBase {
+ " bar are built.")
public List<String> outputGroups;

@Option(
name = "experimental_run_validations",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.OUTPUT_SELECTION,
effectTags = {OptionEffectTag.EXECUTION, OptionEffectTag.AFFECTS_OUTPUTS},
help = "Use --run_validations instead.")
public boolean experimentalRunValidationActions;

@Option(
name = "run_validations",
oldName = "experimental_run_validations",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.OUTPUT_SELECTION,
effectTags = {OptionEffectTag.EXECUTION, OptionEffectTag.AFFECTS_OUTPUTS},
Expand Down

0 comments on commit e3af34a

Please sign in to comment.