Skip to content

[9.3.0] Add --incompatible_require_repo_extension_metadata (https://github.co… - #30580

Draft
iancha1992 wants to merge 2 commits into
bazelbuild:release-9.3.0from
iancha1992:cp30464
Draft

[9.3.0] Add --incompatible_require_repo_extension_metadata (https://github.co…#30580
iancha1992 wants to merge 2 commits into
bazelbuild:release-9.3.0from
iancha1992:cp30464

Conversation

@iancha1992

Copy link
Copy Markdown
Member

…m//pull/30202)

This flag allows you to enforce that all module_extensions and repository_rules return metadata. This metadata is used to determine how to handle the extension for the lockfile and R2C2 respectively. You can either error on any of these missing metadata, or just ones defined in the root module. Eventually it would be ideal to flip this but that likely requires a lot of backfilling (that we want to do anyways)

Closes #30202.

PiperOrigin-RevId: 955379016
Change-Id: I8facf9291188f503d8f82e77e8f63e20cec9a828

Description

Motivation

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

Commit d194e06

This flag allows you to enforce that all module_extensions and
repository_rules return metadata. This metadata is used to determine how
to handle the extension for the lockfile and R2C2 respectively. You can
either error on any of these missing metadata, or just ones defined in
the root module. Eventually it would be ideal to flip this but that
likely requires a lot of backfilling (that we want to do anyways)

Closes bazelbuild#30202.

PiperOrigin-RevId: 955379016
Change-Id: I8facf9291188f503d8f82e77e8f63e20cec9a828
@iancha1992
iancha1992 requested a review from a team as a code owner August 4, 2026 22:05
@iancha1992 iancha1992 added team-Configurability platforms, toolchains, cquery, select(), config transitions team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Core Skyframe, bazel query, BEP, options parsing, bazelrc awaiting-review PR is awaiting review from an assigned reviewer labels Aug 4, 2026
@iancha1992
iancha1992 enabled auto-merge August 4, 2026 22:05
@github-actions github-actions Bot added the area-Bzlmod Bzlmod-specific PRs, issues, and feature requests label Aug 4, 2026
@iancha1992
iancha1992 marked this pull request as draft August 4, 2026 22:39
auto-merge was automatically disabled August 4, 2026 22:39

Pull request was converted to draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Bzlmod Bzlmod-specific PRs, issues, and feature requests awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions team-Core Skyframe, bazel query, BEP, options parsing, bazelrc team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants