From ff1f155c7768511cf1b5d0bf6892caabe5e9c5a9 Mon Sep 17 00:00:00 2001 From: John Cater Date: Fri, 13 Nov 2026 17:23:13 +0000 Subject: [PATCH] Disable implicit __init__.py creation for Python targets Set --incompatible_default_to_explicit_init_py globally to silence the rules_python deprecation warning emitted for external targets such as @rules_apple//tools/plisttool:plisttool. See https://github.com/bazel-contrib/rules_python/issues/2945. AI-Assisted: Claude Code, Anthropic Opus 5.5 --- .bazelrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bazelrc b/.bazelrc index 18d8f70..a8212f0 100644 --- a/.bazelrc +++ b/.bazelrc @@ -2,6 +2,10 @@ common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig common --@aspect_rules_ts//ts:default_to_tsc_transpiler +# Don't implicitly create __init__.py files for Python targets. +# See https://github.com/bazel-contrib/rules_python/issues/2945 +common --incompatible_default_to_explicit_init_py + build --java_runtime_version=remotejdk_11 build --java_language_version=11