Skip to content
Permalink
Browse files

Enable --incompatible_bzl_disallow_load_after_statement by default

Fixes #5815

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

RELNOTES: --incompatible_bzl_disallow_load_after_statement is enabled
PiperOrigin-RevId: 239854652
  • Loading branch information...
laurentlb authored and Copybara-Service committed Mar 22, 2019
1 parent d6cd917 commit 3992d29f23b469df8f1cfc0cc707d0058ceede3e
@@ -81,7 +81,7 @@ as it was at the top level. With this change, for `.bzl` files, `load` must
appear at the beginning of the file, i.e. before any other non-`load` statement.

* Flag: `--incompatible_bzl_disallow_load_after_statement`
* Default: `false`
* Default: `true`
* Tracking issue: [#5815](https://github.com/bazelbuild/bazel/issues/5815)


@@ -154,7 +154,7 @@

@Option(
name = "incompatible_bzl_disallow_load_after_statement",
defaultValue = "false",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS,
effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS},
metadataTags = {
@@ -212,7 +212,7 @@ public static Builder builderWithDefaults() {
.experimentalRestrictNamedParams(false)
.experimentalStarlarkConfigTransitions(false)
.incompatibleUseToolchainProvidersInJavaCommon(false)
.incompatibleBzlDisallowLoadAfterStatement(false)
.incompatibleBzlDisallowLoadAfterStatement(true)
.incompatibleDepsetIsNotIterable(false)
.incompatibleDepsetUnion(false)
.incompatibleDisableThirdPartyLicenseChecking(false)

0 comments on commit 3992d29

Please sign in to comment.
You can’t perform that action at this time.