iamrajiv / helloworld-grpc-gateway

This project is a basic hello world program utilizing gRPC-Gateway. It was developed as part of my participation in Google Season of Docs 2020 with gRPC-Gateway. The goal of this project is to introduce and familiarize individuals with gRPC-Gateway.
https://app.swaggerhub.com/apis/iamrajiv/Hello_World_gRPC-Gateway/2
MIT License
41 stars 15 forks source link

buf@v1.9.0 requires protobuf@v1.28.2 not protobuf@v1.28.1 #2

Open Lanskask opened 2 years ago

Lanskask commented 2 years ago

What I do and its result

$ gh repo clone iamrajiv/helloworld-grpc-gateway
$ cd helloworld-grpc-gateway
$ make install

# output
go get \
        github.com/bufbuild/buf/cmd/buf \
        github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
        github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
        google.golang.org/grpc/cmd/protoc-gen-go-grpc \
        google.golang.org/protobuf/cmd/protoc-gen-go
go: downloading github.com/bufbuild/buf v1.9.0
go: github.com/bufbuild/buf@v1.9.0 (matching github.com/bufbuild/buf/cmd/buf@upgrade) requires google.golang.org/protobuf@v1.28.2-0.20220831092852-f930b1dc76e8, not google.golang.org/protobuf@v1.28.1 (matching google.golang.org/protobuf/cmd/protoc-gen-go@upgrade)
make: *** [install] Error 1

What I expect

That it will install the listed packages :-)

My System

$ uname -a
Darwin Bla-Bla.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64

Temp solution?

But if install them separately everything is ok

go get github.com/bufbuild/buf/cmd/buf 
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway 
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc 
go get google.golang.org/protobuf/cmd/protoc-gen-go
Lanskask commented 2 years ago
go version
go version go1.19.3 darwin/amd64