commit | 575bb48d54f350ee36725e48d4e4552f25bda379 | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Fri Mar 15 10:36:19 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Mar 15 10:38:57 2019 -0700 |
tree | 57bfc4f5ef26a110f413eea04f269eae9c4ed434 | |
parent | f3944c85ab4fbd8b98b3c8d5278f54017af53238 [diff] |
Flip --incompatible_disallow_legacy_py_provider With this flag enabled by default, the legacy "py" struct provider can no longer be given to Python rules. Use PyInfo instead. For more information see feature tracking issue #7010 and flag migration tracking issue #7298. See #7741 for cleaning up the flag and legacy code paths. This flag flip was tested by https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/45 ("The following flags didn't break any passing jobs: ..."). RELNOTES[INC]: (Starlark rules) The legacy "py" provider can no longer be passed to or produced by native Python rules; use [PyInfo](https://docs.bazel.build/versions/master/skylark/lib/PyInfo.html) instead. See [#7298](https://github.com/bazelbuild/bazel/issues/7298) for more information. Fixes #7298, fixes #7010. PiperOrigin-RevId: 238667805
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java index ef53b51..8c7055e 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java
@@ -216,7 +216,7 @@ @Option( name = "incompatible_disallow_legacy_py_provider", - defaultValue = "false", + defaultValue = "true", documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS, effectTags = {OptionEffectTag.LOADING_AND_ANALYSIS}, metadataTags = {