Skip to content

Commit

Permalink
Automated rollback of commit f7f5415.
Browse files Browse the repository at this point in the history
*** Reason for rollback ***

Breaks things inside Google. I'll roll it forward in a few days.

*** Original change description ***

Enable --incompatible_no_transitive_loads by default

Fixes #5636

Tested: https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/48

RELNOTES: --incompatible_no_transitive_loads is enabled by default.
PiperOrigin-RevId: 239485725
  • Loading branch information
laurentlb authored and copybara-github committed Mar 20, 2019
1 parent d93c190 commit 15b70bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/docs/skylark/backward-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ y = 1
```

* Flag: `--incompatible_no_transitive_loads`
* Default: `true`
* Default: `false`
* Introduced in: `0.19.0`
* Tracking issue: [#5636](https://github.com/bazelbuild/bazel/issues/5636)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public class StarlarkSemanticsOptions extends OptionsBase implements Serializabl

@Option(
name = "incompatible_no_transitive_loads",
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 @@ -233,7 +233,7 @@ public static Builder builderWithDefaults() {
.incompatibleNoOutputAttrDefault(false)
.incompatibleNoSupportToolsInActionInputs(false)
.incompatibleNoTargetOutputGroup(false)
.incompatibleNoTransitiveLoads(true)
.incompatibleNoTransitiveLoads(false)
.incompatibleRemapMainRepo(false)
.incompatibleRemoveNativeMavenJar(false)
.incompatibleRequireFeatureConfigurationForPic(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,5 +477,7 @@ public void testLoadBzlFileFromWorkspaceWithRemapping() throws Exception {

assertThat(result.get(skylarkImportLookupKey).getEnvironmentExtension().getBindings())
.containsEntry("a_symbol", 5);
assertThat(result.get(skylarkImportLookupKey).getEnvironmentExtension().getBindings())
.containsEntry("y_symbol", 5);
}
}

0 comments on commit 15b70bb

Please sign in to comment.