Skip to content

Conversation

@zecke
Copy link
Contributor

@zecke zecke commented Aug 15, 2025

Delay initializating the defaultProtoCompilers/defaultGrpcProtoCompilers until there is a valid module to apparent name mapping.

Generate the proto/grpc compiler label using the apparent name mapping and fallback to io_bazel_rules_go if none exist.

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

language/go

What does this PR do? Why is it needed?

Makes running gazelle with a proto and repo_name = "rules_go" work.

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Delay initializating the defaultProtoCompilers/defaultGrpcProtoCompilers
until there is a valid module to apparent name mapping.

Generate the proto/grpc compiler label using the apparent name mapping
and fallback to io_bazel_rules_go if none exist.
@zecke zecke changed the title go/proto: Do not assume the repo_name being "io_bazel_rules_go" WIP: go/proto: Do not assume the repo_name being "io_bazel_rules_go" Aug 15, 2025
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