Skip to content

API in release-1.11 not usable (protobuf dependency) #806

Open
@Tanemahuta

Description

@Tanemahuta

Describe the bug
The protobuf marshaller referenced by the API module is not compatible.

Steps to reproduce the issue:

  1. Create a project and add require github.com/banzaicloud/istio-operator/api/v2 v2.0.0-20211217152025-f1b654fb609f to your go.mod.
  2. Use IstioMeshGateway struct in your code.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions