Skip to content

Commit 2be0dd9

Browse files
authored
fix: remove flag_aliases to unbreak bazel 9 (bazel-contrib#3649)
The flag_alias() function in MODULE.bazel has a bug where it doesn't properly parse labels when transitions are involved in certain ways (not entirely clear). A fix will com in a later Bazel release. Until them, remove the calls. Fixes bazel-contrib#3648
1 parent c91d9f0 commit 2be0dd9

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

MODULE.bazel

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -460,22 +460,25 @@ uv_dev.configure(
460460
version = "0.6.2",
461461
)
462462

463-
flag_alias(
464-
name = "build_python_zip",
465-
starlark_flag = "//python/config_settings:build_python_zip",
466-
)
467-
468-
flag_alias(
469-
name = "incompatible_default_to_explicit_init_py",
470-
starlark_flag = "//python/config_settings:incompatible_default_to_explicit_init_py",
471-
)
472-
473-
flag_alias(
474-
name = "python_path",
475-
starlark_flag = "//python/config_settings:python_path",
476-
)
477-
478-
flag_alias(
479-
name = "experimental_python_import_all_repositories",
480-
starlark_flag = "//python/config_settings:experimental_python_import_all_repositories",
481-
)
463+
# Temporarily comment out these flag aliases because they break Bazel 9
464+
# when transitions are also used with a target.
465+
#
466+
# flag_alias(
467+
# name = "build_python_zip",
468+
# starlark_flag = "//python/config_settings:build_python_zip",
469+
# )
470+
471+
# flag_alias(
472+
# name = "incompatible_default_to_explicit_init_py",
473+
# starlark_flag = "//python/config_settings:incompatible_default_to_explicit_init_py",
474+
# )
475+
476+
# flag_alias(
477+
# name = "python_path",
478+
# starlark_flag = "//python/config_settings:python_path",
479+
# )
480+
481+
# flag_alias(
482+
# name = "experimental_python_import_all_repositories",
483+
# starlark_flag = "//python/config_settings:experimental_python_import_all_repositories",
484+
# )

0 commit comments

Comments
 (0)