i-love-flamingo / flamingo-commerce

Flexible E-Commerce Framework on top of Flamingo. Used to build E-Commerce "Portals" and connect it with the help of individual Adapters to other services.
https://www.flamingo.me/flamingo-commerce.html
MIT License
506 stars 81 forks source link

rpc dependency mismatch #517

Closed idc77 closed 8 months ago

idc77 commented 8 months ago

I'm following https://github.com/i-love-flamingo/example-commerce

The 2nd code snippet produces

go mod tidy
go: downloading github.com/go-playground/form/v4 v4.2.1
go: downloading github.com/coreos/go-oidc/v3 v3.6.0
go: downloading golang.org/x/oauth2 v0.11.0
go: downloading github.com/go-redsync/redsync/v4 v4.8.1
go: downloading flamingo.me/form v1.1.1
go: downloading github.com/gomodule/redigo v2.0.0+incompatible
go: downloading github.com/stvp/tempredis v0.0.0-20181119212430-b82af8480203
go: downloading github.com/testcontainers/testcontainers-go v0.23.0
go: downloading github.com/gofrs/uuid v4.3.1+incompatible
go: downloading github.com/go-jose/go-jose/v3 v3.0.0
go: downloading github.com/go-playground/form v3.1.4+incompatible
go: downloading github.com/go-playground/universal-translator v0.17.0
go: downloading github.com/leebenson/conform v1.2.2
go: downloading gopkg.in/go-playground/validator.v9 v9.31.0
go: downloading github.com/go-playground/locales v0.13.0
go: downloading github.com/etgryphon/stringUp v0.0.0-20121020160746-31534ccd8cac
go: downloading github.com/leodido/go-urn v1.1.0
go: downloading golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea
go: downloading github.com/docker/docker v24.0.5+incompatible
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/moby/term v0.5.0
go: downloading github.com/containerd/containerd v1.7.3
go: downloading github.com/cpuguy83/dockercfg v0.3.1
go: downloading dario.cat/mergo v1.0.0
go: downloading github.com/cenkalti/backoff/v4 v4.2.1
go: downloading github.com/opencontainers/image-spec v1.1.0-rc4
go: downloading golang.org/x/crypto v0.12.0
go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1
go: downloading github.com/opencontainers/go-digest v1.0.0
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading github.com/morikuni/aec v1.0.0
go: downloading github.com/klauspost/compress v1.16.6
go: downloading github.com/docker/distribution v2.8.2+incompatible
go: downloading github.com/moby/patternmatcher v0.5.0
go: downloading github.com/moby/sys/sequential v0.5.0
go: downloading github.com/Microsoft/go-winio v0.6.1
go: downloading github.com/opencontainers/runc v1.1.5
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19
go: downloading google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef
go: downloading github.com/go-playground/assert/v2 v2.0.1
go: downloading github.com/go-redis/redis v6.15.9+incompatible
go: downloading github.com/go-redis/redis/v7 v7.4.0
go: downloading github.com/go-redis/redis/v8 v8.11.4
go: downloading gopkg.in/go-playground/assert.v1 v1.2.1
go: downloading github.com/icrowley/fake v0.0.0-20180203215853-4178557ae428
go: downloading github.com/corpix/uarand v0.1.1
go: code.icod.de/exp/cbdshop imports
    flamingo.me/flamingo-commerce/v3/checkout imports
    flamingo.me/flamingo-commerce/v3/checkout/infrastructure/contextstore tested by
    flamingo.me/flamingo-commerce/v3/checkout/infrastructure/contextstore.test imports
    github.com/testcontainers/testcontainers-go imports
    github.com/containerd/containerd/platforms imports
    github.com/containerd/containerd/errdefs imports
    google.golang.org/grpc/status imports
    google.golang.org/genproto/googleapis/rpc/status: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
    google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef (/home/darko/go/pkg/mod/google.golang.org/genproto@v0.0.0-20221227171554-f9683d7f8bef/googleapis/rpc/status)
    google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 (/home/darko/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20230525234030-28d5490b6b19/status)
tessig commented 8 months ago

for a quick fix, try go get -u google.golang.org/genproto/googleapis/rpc in your example project. That should let you continue with the example.

We need to update multiple dependencies here in commerce first and then revisit this issue later this week

IvanMaidurov commented 8 months ago

@idc77 we performed a dependency update and prepared new release.

I went through the guide and all worked like a charm after the update.

thank you for your help