Skip to content

Add --incompatible_require_repo_extension_metadata - #30202

Closed
keith wants to merge 3 commits into
bazelbuild:masterfrom
keith:ks/add-incompatible_require_repo_extension_metadata
Closed

keith wants to merge 3 commits into
bazelbuild:masterfrom
keith:ks/add-incompatible_require_repo_extension_metadata

Conversation

@keith

@keith keith commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

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)

fmeum pushed a commit to bazel-contrib/rules_shell that referenced this pull request Jul 9, 2026
This is just being explicit about its non-reproducibility to satisfy
bazelbuild/bazel#30202
Wyverald pushed a commit to bazel-contrib/bazel_features that referenced this pull request Jul 10, 2026
@keith
keith marked this pull request as ready for review July 13, 2026 15:55
@keith
keith requested review from a team, Wyverald and meteorcloudy as code owners July 13, 2026 15:55
@keith
keith requested review from gregestren and removed request for a team July 13, 2026 15:55
@github-actions github-actions Bot 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 area-Bzlmod Bzlmod-specific PRs, issues, and feature requests awaiting-review PR is awaiting review from an assigned reviewer labels Jul 13, 2026
keith added 2 commits July 24, 2026 09:48
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 called from
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)
@keith
keith force-pushed the ks/add-incompatible_require_repo_extension_metadata branch from 69f9193 to 6467e70 Compare July 24, 2026 16:50
@github-actions github-actions Bot added the community-reviewed Reviewed by a trusted community contributor label Jul 24, 2026
@fmeum

fmeum commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

@bazel-io fork 9.3.0

@Wyverald Wyverald added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Jul 27, 2026
@github-actions github-actions Bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jul 28, 2026
@keith
keith deleted the ks/add-incompatible_require_repo_extension_metadata branch August 10, 2026 21:12
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Aug 17, 2026
…d#30202) (bazelbuild#30656)

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.

Closees bazelbuild#30464

PiperOrigin-RevId: 955379016
Change-Id: I8facf9291188f503d8f82e77e8f63e20cec9a828
(cherry picked from commit d194e06)

Co-authored-by: Ian (Hee) Cha <[email protected]>
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 community-reviewed Reviewed by a trusted community contributor 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.

3 participants