protobuf-go/compiler/protogen
Michael Stapelberg 560503ec5d compiler/protogen: allow overriding API level from --go_opt
For golang/protobuf#1657

In order to change the default API level, one can now specify:

    protoc […] --go_opt=default_api_level=API_HYBRID

To override the default API level for a specific file, use
the apilevelM mapping flag (similar to the M flag for import paths):

    protoc […] --go_opt=apilevelMhello.proto=API_HYBRID

(Similar to the M option.)

Change-Id: I44590e9aa4c034a5bb9c93ae32f4b11188e684a0
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/634818
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-12-11 03:23:13 -08:00
..
protogen_apilevel.go all: Release the Opaque API 2024-12-11 03:16:51 -08:00
protogen_opaque.go all: Release the Opaque API 2024-12-11 03:16:51 -08:00
protogen_test.go
protogen.go compiler/protogen: allow overriding API level from --go_opt 2024-12-11 03:23:13 -08:00