While this works to some extent, some tools don't like the incorrect use of such a go package, one is CUE.
The protocol buffers reference documentation defines:
The .proto file should contain a go_package option specifying the full import path of the Go package that contains the generated code.
All Cloudstate
.protobuf
files define an incorrect and incompatiblego_package
: https://github.com/cloudstateio/cloudstate/blob/v0.5.1/protocols/protocol/cloudstate/event_sourced.proto#L27While this works to some extent, some tools don't like the incorrect use of such a go package, one is CUE. The protocol buffers reference documentation defines:
which leads to the following correct definition:
The Go User Language Support Library with milestone v0.2.x corrects this. Changes have to be copied over to the main repository.