-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
go_proto_compiler
causes protoc
rebuilds by enabling bootstrap_nogo
#2999
Comments
Setting Once this issue has been resolved, I could submit a PR that fixes a similar issue with |
Perhaps the error is that the protoc plugin does need |
That makes sense, thanks for explanation. I will figure this out for my codebase and turn it into a PR once I have fully understood the consequences. |
What version of rules_go are you using?
v0.29.0
What version of gazelle are you using?
v0.24.0
What version of Bazel are you using?
Bazel 5.0.0rc1 (also affects 4.2.1)
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux
Any other potentially useful information about your toolchain?
What did you do?
I am using libraries that themselves use
go_proto_compiler
fromrules_go
and observer that it causesprotoc
to be built in multiple configurations that only differ in the value of@io_bazel_rules_go//go/private:bootstrap_nogo
. The top-level exec config has this Starlark flag at its default value (false
), but thego_reset_target
emitted in thego_proto_compiler
macro sets it totrue
throughgo_reset_transition
(see https://github.com/bazelbuild/rules_go/blob/bd7fbccc635af297db7b36f6c81d0e7db7921cca/go/private/rules/transition.bzl#L239).What did you expect to see?
protoc
is only built once, in the top-levelexec
config.What did you see instead?
protoc
(wastefully) built multiple times.The text was updated successfully, but these errors were encountered: