Skip to content

api: organize go proto libraries #7982

@kyessenov

Description

@kyessenov

api_go_proto_library is used in an ad-hoc fashion. It's not part of the api_proto_library macro, and is often neglected when protos are shuffled.

This issue is a proposal to organize the protos as follows:

This seems like a middle-ground due to various Bazel issues with golang:

  • you cannot have two proto libraries as inputs to a Go proto library;
  • you cannot have two Go proto libraries for the same proto.

This is also aligned with go-control-plane structure. Having one package per proto is onerous for Go developers.

Ref envoyproxy/go-control-plane#213

Metadata

Metadata

Assignees

Labels

design proposalNeeds design doc/proposal before implementationno stalebotDisables stalebot from closing an issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions