feat: commit generated Go code, consume via go get instead of submodule

Add go.mod, buf.gen.yaml, and generated gen/kafkamgmt/v1 so consumers
fetch this module directly via go get against the self-hosted Forgejo
host, with no local buf/protoc plugin installation required. Add a
codegen-check CI job to keep gen/ in sync with proto/.
This commit is contained in:
riotpiaole
2026-06-21 19:40:12 -07:00
parent c42a5df536
commit 61555adc74
10 changed files with 2249 additions and 27 deletions
+3 -4
View File
@@ -5,10 +5,9 @@ package kafkamgmt.v1;
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
// go_package is a neutral placeholder. Each consumer (kafaka_management_service,
// kmsvc-sdk, ...) generates into its own module path and MUST override this via
// buf.gen.yaml managed-mode `override`, not by forking this file.
option go_package = "github.com/rockliang/kmsvc-proto/gen/kafkamgmt/v1;kafkamgmtv1";
// Generated Go code is committed to this repo under gen/kafkamgmt/v1 and
// consumed directly via `go get`. Consumers do not run buf generate themselves.
option go_package = "forgejo.riotpiao.homelab.com/rock/kmsvc-proto/gen/kafkamgmt/v1;kafkamgmtv1";
// QueueService is the message-plane API for the Kafka Management Service.
// Queue lifecycle (create/delete/configure) is managed via the Queue CRD,