Automated rollback of commit 8241d27d669dcfa7517deceda67715be344d50b9. *** Reason for rollback *** Breaks tests [GOOGLE] testing head Blaze against the depot which hasn't been migrated yet. *** Original change description *** Flip the --incompatible_disallow_native_in_build_file flag Fixes #7513 RELNOTES[INC]: The "native" module is no longer available in BUILD files, all its members can be accessed directly as global symbols. This can be temporarily reverted by providing --incompatible_disallow_native_in_build_file=false as a flag to Blaze. PiperOrigin-RevId: 249639134
diff --git a/src/main/java/com/google/devtools/build/lib/packages/StarlarkSemanticsOptions.java b/src/main/java/com/google/devtools/build/lib/packages/StarlarkSemanticsOptions.java index f1ee3b4..96d8b5d 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/StarlarkSemanticsOptions.java +++ b/src/main/java/com/google/devtools/build/lib/packages/StarlarkSemanticsOptions.java
@@ -304,7 +304,7 @@ @Option( name = "incompatible_disallow_native_in_build_file", - defaultValue = "true", + defaultValue = "false", documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS, effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS}, metadataTags = {
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/StarlarkSemantics.java b/src/main/java/com/google/devtools/build/lib/syntax/StarlarkSemantics.java index 8a58b3d..52e07b8 100644 --- a/src/main/java/com/google/devtools/build/lib/syntax/StarlarkSemantics.java +++ b/src/main/java/com/google/devtools/build/lib/syntax/StarlarkSemantics.java
@@ -231,7 +231,7 @@ .incompatibleDisallowLegacyJavaProvider(false) .incompatibleDisallowLegacyJavaInfo(false) .incompatibleDisallowLoadLabelsToCrossPackageBoundaries(true) - .incompatibleDisallowNativeInBuildFile(true) + .incompatibleDisallowNativeInBuildFile(false) .incompatibleDisallowOldStyleArgsAdd(true) .incompatibleDisallowRuleExecutionPlatformConstraintsAllowed(false) .incompatibleDisallowStructProviderSyntax(false)