proto-go-course
proto-go-course copied to clipboard
no matching versions for query "upgrade"
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$
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.