Skip to content

Dependency bug when launching the checkers Blockchain, using Docker. #9

@MiguelRocha2001

Description

@MiguelRocha2001

When launching the checkers blockchain, using docker-compose, the following error happens:

~/repos/cosmos-ibc-docker/tokentransfer$ sudo docker-compose -f tokentransfer.yml --profile go up
Starting relayer   ... done
Starting checkersb ... done
Starting checkersa ... done
Attaching to relayer, checkersb, checkersa
checkersb         | Cosmos SDK's version is: stargate - v0.45.4
checkersb         | 
checkersa         | Cosmos SDK's version is: stargate - v0.45.4
checkersa         | 
checkersb         | cannot build app:
checkersb         | 
checkersb         | 	github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway imports
checkersb         | 	github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor imports
checkersb         | 	google.golang.org/genproto/googleapis/api/annotations: ambiguous import: found package google.golang.org/genproto/googleapis/api/annotations in multiple modules:
checkersb         | 	google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230223222841-637eb2293923/googleapis/api/annotations)
checkersb         | 	google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/api@v0.0.0-20250303144028-a0af3efb3deb/annotations)
checkersb         | github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 imports
checkersb         | 	github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi imports
checkersb         | 	google.golang.org/genproto/googleapis/api/visibility: ambiguous import: found package google.golang.org/genproto/googleapis/api/visibility in multiple modules:
checkersb         | 	google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230223222841-637eb2293923/googleapis/api/visibility)
checkersb         | 	google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/api@v0.0.0-20250303144028-a0af3efb3deb/visibility)
checkersb         | github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 imports
checkersb         | 	github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi imports
checkersb         | 	google.golang.org/genproto/googleapis/rpc/status: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
checkersb         | 	google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230223222841-637eb2293923/googleapis/rpc/status)
checkersb         | 	google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20250303144028-a0af3efb3deb/status)
checkersb         | github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 imports
checkersb         | 	github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi imports
checkersb         | 	slices: package slices is not in GOROOT (/usr/local/go/src/slices)
checkersb         | go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
checkersb         | : exit status 1
checkersb         | Waiting for a fix before retrying...
checkersa         | Waiting for a fix before retrying...
checkersa         | cannot build app:
checkersa         | 
checkersa         | 	github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway imports
checkersa         | 	github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor imports
checkersa         | 	google.golang.org/genproto/googleapis/api/annotations: ambiguous import: found package google.golang.org/genproto/googleapis/api/annotations in multiple modules:
checkersa         | 	google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230223222841-637eb2293923/googleapis/api/annotations)
checkersa         | 	google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/api@v0.0.0-20250303144028-a0af3efb3deb/annotations)
checkersa         | github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 imports
checkersa         | 	github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi imports
checkersa         | 	google.golang.org/genproto/googleapis/api/visibility: ambiguous import: found package google.golang.org/genproto/googleapis/api/visibility in multiple modules:
checkersa         | 	google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230223222841-637eb2293923/googleapis/api/visibility)
checkersa         | 	google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/api@v0.0.0-20250303144028-a0af3efb3deb/visibility)
checkersa         | github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 imports
checkersa         | 	github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi imports
checkersa         | 	google.golang.org/genproto/googleapis/rpc/status: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
checkersa         | 	google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230223222841-637eb2293923/googleapis/rpc/status)
checkersa         | 	google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20250303144028-a0af3efb3deb/status)
checkersa         | github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 imports
checkersa         | 	github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi imports
checkersa         | 	slices: package slices is not in GOROOT (/usr/local/go/src/slices)
checkersa         | go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
checkersa         | : exit status 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping checkersb ... done
Stopping checkersa ... done
Stopping relayer   ... done

I tried different Go versions - 17, 18, 21 and 24 - but none of that worked.

Could someone help? Thanks in advance.

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