proto-go-course icon indicating copy to clipboard operation
proto-go-course copied to clipboard

no matching versions for query "upgrade"

Open myers-dev opened this issue 1 year ago • 1 comments

Trying to executing make as follows but getting the error below.

t:~/dev/proto-go-course$ make
protoc -Iproto --go_opt=module=github.com/Clement-Jean/proto-go-course --go_out=. proto/*.proto
go build -o proto-go-course .
main.go:7:2: no required module provides package github.com/Clement-Jean/proto-go-course/proto; to add it:
        go get github.com/Clement-Jean/proto-go-course/proto
make: *** [Makefile:23: build] Error 1
t:~/dev/proto-go-course$  go get github.com/Clement-Jean/proto-go-course/proto
go: github.com/Clement-Jean/proto-go-course/proto: no matching versions for query "upgrade"
andremyers@beet:~/dev/proto-go-course$ 

myers-dev avatar May 16 '23 16:05 myers-dev

Could you verify if the code was generated in your proto directory? You should have .pb.go files inside.

Another problem that I can think of is that you didn't intitialize the go module with the same name as in my go.mod file.

Waiting for your update.

Clement-Jean avatar May 18 '23 07:05 Clement-Jean