Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0.1] Allow cc_binary with dynamic_deps to be extended #24815

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

bazel-io
Copy link
Member

@bazel-io bazel-io commented Jan 2, 2025

cc_binary has an initializer that may set a private attribute, which is only permitted for built-in rules. The allowlist check always used the outermost rule class, thus failing if cc_binary is extended by a non-built-in rule. This is fixed by checking the rule class that actually declares the initializer.

Work towards #19507 (comment)

Closes #24778.

PiperOrigin-RevId: 711361632
Change-Id: I3c0b6e1e6c50fd1af9f1dc635052d0054114ee2d

Commit 7093088

`cc_binary` has an initializer that may set a private attribute, which is only permitted for built-in rules. The allowlist check always used the outermost rule class, thus failing if `cc_binary` is extended by a non-built-in rule. This is fixed by checking the rule class that actually declares the initializer.

Work towards bazelbuild#19507 (comment)

Closes bazelbuild#24778.

PiperOrigin-RevId: 711361632
Change-Id: I3c0b6e1e6c50fd1af9f1dc635052d0054114ee2d
@bazel-io bazel-io requested a review from a team as a code owner January 2, 2025 10:28
@bazel-io bazel-io added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Jan 2, 2025
@bazel-io bazel-io requested a review from comius January 2, 2025 10:28
@iancha1992 iancha1992 enabled auto-merge January 2, 2025 22:42
@iancha1992 iancha1992 added this pull request to the merge queue Jan 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 8, 2025
@meteorcloudy meteorcloudy added this pull request to the merge queue Jan 8, 2025
Merged via the queue into bazelbuild:release-8.0.1 with commit b746d66 Jan 8, 2025
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants