Describe the bug
The protobuf marshaller referenced by the API module is not compatible.
Steps to reproduce the issue:
- Create a project and add
require github.com/banzaicloud/istio-operator/api/v2 v2.0.0-20211217152025-f1b654fb609f to your go.mod.
- Use IstioMeshGateway struct in your code.
- Compiling will ultimately fail.
Expected behavior
Compiling should succeed.
Additional context
Line in question is
|
CommonMarshaler = &github_com_gogo_protobuf_jsonpb.Marshaler{Int64Uint64asIntegers: true} |
.
Maybe it would be a good idea to exclude the gogo/protobuf in all your go.mod and require the waynz0r/protobuf as a dependency in the API go.mod.
Workaround
add a replace github.com/gogo/protobuf => github.com/waynz0r/protobuf v1.3.3-0.20210811122234-64636cae0910 to your project's go.mod.
Describe the bug
The protobuf marshaller referenced by the API module is not compatible.
Steps to reproduce the issue:
require github.com/banzaicloud/istio-operator/api/v2 v2.0.0-20211217152025-f1b654fb609fto your go.mod.Expected behavior
Compiling should succeed.
Additional context
Line in question is
istio-operator/api/v1alpha1/common_json.gen.go
Line 225 in f1b654f
Maybe it would be a good idea to exclude the gogo/protobuf in all your go.mod and require the waynz0r/protobuf as a dependency in the API go.mod.
Workaround
add a
replace github.com/gogo/protobuf => github.com/waynz0r/protobuf v1.3.3-0.20210811122234-64636cae0910to your project's go.mod.