Skip to content

Commit

Permalink
Enable the flag incompatible_disallow_hashing_frozen_mutables
Browse files Browse the repository at this point in the history
    Fixes bazelbuild/bazel#7800

    RELNOTES: The flag incompatible_disallow_hashing_frozen_mutables is enabled (bazelbuild/bazel#7800)
    PiperOrigin-RevId: 264659899
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent fc91297 commit 026b475
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public class StarlarkSemanticsOptions extends OptionsBase implements Serializabl

@Option(
name = "incompatible_no_target_output_group",
defaultValue = "true",
defaultValue = "false",
documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS,
effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS},
metadataTags = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public static Builder builderWithDefaults() {
.incompatibleNoOutputAttrDefault(true)
.incompatibleNoRuleOutputsParam(false)
.incompatibleNoSupportToolsInActionInputs(true)
.incompatibleNoTargetOutputGroup(true)
.incompatibleNoTargetOutputGroup(false)
.incompatibleNoTransitiveLoads(true)
.incompatibleObjcFrameworkCleanup(true)
.incompatibleRemapMainRepo(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,22 +494,6 @@ public void configKeyNonexistentTarget() throws Exception {
assertContainsEvent("//foo:fake is not a valid configuration key for //foo:g");
}

@Test
public void configKeyNonexistentTarget_otherPackage() throws Exception {
reporter.removeHandler(failFastHandler); // Expect errors.
scratch.file("bar/BUILD");
scratch.file(
"foo/BUILD",
"genrule(",
" name = 'g',",
" outs = ['g.out'],",
" cmd = select({'//bar:fake': ''})",
")");
assertThat(getConfiguredTarget("//foo:g")).isNull();
assertContainsEvent(
"While resolving configuation keys for //foo:g: no such target '//bar:fake'");
}

/**
* Tests config keys with multiple requirements.
*/
Expand Down

0 comments on commit 026b475

Please sign in to comment.