Skip to content

Conversation

dws
Copy link
Contributor

@dws dws commented Jun 12, 2025

The Starlark embedded in Bazel, that can get used when building other repos, has problems exposed by enabling

--incompatible_disable_target_default_provider_fields

Since this code is embedded in Bazel, there is no way for users to patch it in the course of trying to disable target default provider fields in their own repos. We here address these issues.

The Starlark embedded in Bazel, that can get used when building
other repos, has problems exposed by enabling

    --incompatible_disable_target_default_provider_fields

Since this code is embedded in Bazel, there is no way for users to
patch it in the course of trying to disable target default provider
fields in their own repos.  We here address these issues.
@dws dws marked this pull request as ready for review June 12, 2025 03:47
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Jun 12, 2025
@dws
Copy link
Contributor Author

dws commented Jun 12, 2025

@bazel-io fork 8.3.0

@dws
Copy link
Contributor Author

dws commented Jun 12, 2025

@pzembrod Perhaps you could review this?

@fmeum
Copy link
Collaborator

fmeum commented Jun 12, 2025

@bazel-io fork 8.3.0

@dws
Copy link
Contributor Author

dws commented Jun 12, 2025

@meteorcloudy Perhaps you could review this? Or perhaps identify an appropriate reviewer?

@meteorcloudy meteorcloudy requested a review from pzembrod June 12, 2025 12:38
Copy link
Contributor

@pzembrod pzembrod left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

@pzembrod pzembrod 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 Jun 12, 2025
@iancha1992 iancha1992 added the team-Starlark-Interpreter Issues involving the Starlark interpreter used by Bazel label Jun 12, 2025
@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 Jun 13, 2025
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Jun 13, 2025
The Starlark embedded in Bazel, that can get used when building other repos, has problems exposed by enabling

    --incompatible_disable_target_default_provider_fields

Since this code is embedded in Bazel, there is no way for users to patch it in the course of trying to disable target default provider fields in their own repos.  We here address these issues.

Closes bazelbuild#26276.

PiperOrigin-RevId: 770991995
Change-Id: I4b29e9d52dd1789afe7de990ca9500812a8ec211
github-merge-queue bot pushed a commit that referenced this pull request Jun 13, 2025
The Starlark embedded in Bazel, that can get used when building other
repos, has problems exposed by enabling

    --incompatible_disable_target_default_provider_fields

Since this code is embedded in Bazel, there is no way for users to patch
it in the course of trying to disable target default provider fields in
their own repos. We here address these issues.

Closes #26276.

PiperOrigin-RevId: 770991995
Change-Id: I4b29e9d52dd1789afe7de990ca9500812a8ec211

Commit
7846859

Co-authored-by: David Sanderson <[email protected]>
copybara-service bot pushed a commit that referenced this pull request Jun 17, 2025
…der_fields

We here address obstacles to building Bazel with `--incompatible_disable_target_default_provider_fields` enabled.

This includes patches representing

- bazelbuild/apple_support#413
- bazelbuild/rules_java#303
- grpc/grpc-java#12148

which should be removed once these PRs have been included in releases of their respective repos.  All of these pull requests have been approved and merged into their respective repositories.

Once #26276 is cherry-picked into a Bazel 8 release, we should be able to update `.bazelversion` to that release, and in conjunction with the changes herein, we should be able to enable  `--incompatible_disable_target_default_provider_fields` in `.bazelrc` in order to prevent regressions.  Ideally, we could also flip the default value of this flag once #26297 also lands.
Note that #26293 is related, but not strictly needed for builds.

Closes #26272.

PiperOrigin-RevId: 772542631
Change-Id: Ib5db3ffa3f4857199a6f8d838078d7ced2281ba3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Starlark-Interpreter Issues involving the Starlark interpreter used by Bazel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants