Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -460,22 +460,25 @@ uv_dev.configure(
version = "0.6.2",
)

flag_alias(
name = "build_python_zip",
starlark_flag = "//python/config_settings:build_python_zip",
)

flag_alias(
name = "incompatible_default_to_explicit_init_py",
starlark_flag = "//python/config_settings:incompatible_default_to_explicit_init_py",
)

flag_alias(
name = "python_path",
starlark_flag = "//python/config_settings:python_path",
)

flag_alias(
name = "experimental_python_import_all_repositories",
starlark_flag = "//python/config_settings:experimental_python_import_all_repositories",
)
# Temporarily comment out these flag aliases because they break Bazel 9
# when transitions are also used with a target.
Comment on lines +463 to +464
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This comment provides good context. To make this temporary change easier to track and revert, consider adding a TODO with a reference to the issue. This helps ensure it's addressed once the underlying Bazel bug is fixed.

Suggested change
# Temporarily comment out these flag aliases because they break Bazel 9
# when transitions are also used with a target.
# TODO(#3648): Uncomment when the Bazel 9 bug with flag_alias is fixed.
# These are temporarily commented out to unbreak builds with transitions.

#
# flag_alias(
# name = "build_python_zip",
# starlark_flag = "//python/config_settings:build_python_zip",
# )

# flag_alias(
# name = "incompatible_default_to_explicit_init_py",
# starlark_flag = "//python/config_settings:incompatible_default_to_explicit_init_py",
# )

# flag_alias(
# name = "python_path",
# starlark_flag = "//python/config_settings:python_path",
# )

# flag_alias(
# name = "experimental_python_import_all_repositories",
# starlark_flag = "//python/config_settings:experimental_python_import_all_repositories",
# )