Protobuf: github.com/golang/protobuf/protoc-gen-go can not be found

Created on 11 Oct 2017  路  5Comments  路  Source: golang/protobuf

Most helpful comment

I have installed Go compiler and tools.
Then when I do go get -u github.com/golang/protobuf/protoc-gen-go nothing happens, nothing installed.
I've followed the solution from here and successfully installed manually.

All 5 comments

Have same problem.

Can you provide more details on what you are trying to do and what fails?

To use protoc-gen-go, you'll need to grab the code from this repo and install, see https://github.com/golang/protobuf#installation.

I have installed Go compiler and tools.
Then when I do go get -u github.com/golang/protobuf/protoc-gen-go nothing happens, nothing installed.
I've followed the solution from here and successfully installed manually.

Running go get -u github.com/golang/protobuf/protoc-gen-go should download the repo into $GOPATH/src/github.com/golang/protobuf and built protoc-gen-go in $GOPATH/bin. If you didn't explicitly set $GOPATH, the default (on Unix systems) is $HOME/go.

Anyways, good to know that you're able to install the compiler now. Closing out this issue.

The instructions at https://github.com/golang/protobuf#installation uses go get -d -u which does not install. It does provide a more recommended approach of checking out a particular tag first and then run go install on it.

Hmm ... I couldn't easily verify it on Windows, but I find it strange that a go get -u (without -d) will not install.

Anyways, the instructions on the doc is better as it pins protoc-gen-go to a particular tag.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seungryulchoisc picture seungryulchoisc  路  3Comments

dsnet picture dsnet  路  3Comments

parkr picture parkr  路  5Comments

aaabhilash97 picture aaabhilash97  路  4Comments

leduy99 picture leduy99  路  4Comments