Skip to content

fix(protoc): support boolean attrs from Starlark rules - #427

Merged
pcj merged 1 commit into
masterfrom
fix/starlark-boolean-fix
Jul 31, 2026
Merged

fix(protoc): support boolean attrs from Starlark rules#427
pcj merged 1 commit into
masterfrom
fix/starlark-boolean-fix

Conversation

@pcj

@pcj pcj commented Jul 31, 2026

Copy link
Copy Markdown
Member

Starlark booleans are value-typed starlark.Bool, so the existing *starlark.Bool type switch rejected them and triggered a panic through the rule error reporter.

Handle the correct type and add regression coverage verifying that has_services = False is emitted in the generated BUILD rule.

Starlark booleans are value-typed starlark.Bool, so the existing
*starlark.Bool type switch rejected them and triggered a panic through
the rule error reporter.

Handle the correct type and add regression coverage verifying that
has_services = False is emitted in the generated BUILD rule.
@pcj
pcj merged commit 4518136 into master Jul 31, 2026
1 check passed
@pcj
pcj deleted the fix/starlark-boolean-fix branch July 31, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant