Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no matching versions for query "upgrade" #3

Open
myers-dev opened this issue May 16, 2023 · 1 comment
Open

no matching versions for query "upgrade" #3

myers-dev opened this issue May 16, 2023 · 1 comment

Comments

@myers-dev
Copy link

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$ 
@Clement-Jean
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants