Open shi-rudo opened 2 years ago
after some research it seems to related to github.com/gogo/protobuf
. a known issue in this library that isn't expected to be solved anytime soon.
It is advised to use another proto library such as google.golang.org/protobuf/proto
instead. Any chances that watermill will adopt google.golang.org/protobuf/proto
?
Hey. You can use your own CQRS marshaler if you implement the correct interface. You could just copy the one provided with Watermill and switch the library to golang/protobuf.
In the future, we want to address this in #281. :)
I wanted to try out the example of "5-cqrs-protobuf". On recreating the events.pb.go the example watermill fails with:
repo for reproducing can be found under: https://github.com/shi-rudo/5-cqrs-protobuf-latest
// versions: // protoc-gen-go v1.28.0 // protoc v3.19.4
https://github.com/shi-rudo/5-cqrs-protobuf-latest/blob/master/events/events.pb.go