Skip to content

--incompatible_remove_ctx_bazel_py_fragment #27080

@gregestren

Description

@gregestren

Motivation

Part of Starlarkify native Bazel flags: move language flags out of Bazel and into the rule's .bzl definitions. This gives rules owners more ownership over their logic.

This Starlarkifies https://github.com/bazel-contrib/rules_python flags.

This removes ctx.fragments.bazel_py. See #27079 for similar flag for ctx.fragments.py.

Description

When flipped, ctx.fragments.bazel_py no longer exists. A new rules_python release uses that as signal to read its flags from Starlark definitions in the rules_python repo.

See #27079 for incompatibility details.

Incompatible Flag

--incompatible_remove_ctx_bazel_py_fragment

Migration Guide

See #27079.

In which Bazel LTS version will this incompatible change be enabled?

Bazel 9

TODO List

  • Prepare rules_python release that supports Starlark flags
  • Flip flag

Metadata

Metadata

Assignees

Labels

breaking-change-9.0Incompatible flags to be flipped in Bazel 9.0incompatible-changeIncompatible/breaking changeteam-Configurabilityplatforms, toolchains, cquery, select(), config transitions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions