diff --git a/site/docs/skylark/backward-compatibility.md b/site/docs/skylark/backward-compatibility.md index 2dc81f500b1786..6b31bd468741e3 100644 --- a/site/docs/skylark/backward-compatibility.md +++ b/site/docs/skylark/backward-compatibility.md @@ -180,7 +180,7 @@ Likewise, the magic `REPOSITORY_NAME` variable is replaced by same flag. * Flag: `--incompatible_package_name_is_a_function` -* Default: `true` +* Default: `false` ### FileType is deprecated diff --git a/src/main/java/com/google/devtools/build/lib/packages/SkylarkSemanticsOptions.java b/src/main/java/com/google/devtools/build/lib/packages/SkylarkSemanticsOptions.java index d38a808e882899..cb7430326c39f7 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/SkylarkSemanticsOptions.java +++ b/src/main/java/com/google/devtools/build/lib/packages/SkylarkSemanticsOptions.java @@ -316,7 +316,7 @@ public class SkylarkSemanticsOptions extends OptionsBase implements Serializable @Option( name = "incompatible_package_name_is_a_function", - defaultValue = "true", + defaultValue = "false", documentationCategory = OptionDocumentationCategory.SKYLARK_SEMANTICS, effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS}, metadataTags = { diff --git a/src/main/java/com/google/devtools/build/lib/syntax/SkylarkSemantics.java b/src/main/java/com/google/devtools/build/lib/syntax/SkylarkSemantics.java index 0b5aef5c972f59..2062ae17241ca0 100644 --- a/src/main/java/com/google/devtools/build/lib/syntax/SkylarkSemantics.java +++ b/src/main/java/com/google/devtools/build/lib/syntax/SkylarkSemantics.java @@ -127,7 +127,7 @@ public static Builder builderWithDefaults() { .incompatibleGenerateJavaCommonSourceJar(false) .incompatibleNewActionsApi(false) .incompatibleNoSupportToolsInActionInputs(false) - .incompatiblePackageNameIsAFunction(true) + .incompatiblePackageNameIsAFunction(false) .incompatibleRangeType(false) .incompatibleRemoveNativeGitRepository(false) .incompatibleRemoveNativeHttpArchive(false)