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

go module replace does not work #29299

Closed
fsjun opened this issue Dec 17, 2018 · 3 comments
Closed

go module replace does not work #29299

fsjun opened this issue Dec 17, 2018 · 3 comments

Comments

@fsjun
Copy link

fsjun commented Dec 17, 2018

What version of Go are you using (go version)?

go version go1.11.4 linux/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

go module replace in go.mod does not work.
image

What did you expect to see?

download from github.com/grpc/grpc-go not from google.golang.org/grpc

What did you see instead?

download from google.golang.org/grpc , replace does not work

@oiooj oiooj added the modules label Dec 17, 2018
@oiooj
Copy link
Member

oiooj commented Dec 17, 2018

@dapengjun Add a require statement for google.golang.org/grpc

module route

require google.golang.org/grpc v1.17.0

replace google.golang.org/grpc => github.com/grpc/grpc-go v1.17.0

@zigo101
Copy link

zigo101 commented Dec 17, 2018

In 1.12, the requirement line will be not needed any more. #26241

@fsjun
Copy link
Author

fsjun commented Dec 17, 2018

@oiooj Thank you, It works.

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

No branches or pull requests

4 participants