Protobuf: Cannot install package

Created on 14 Sep 2018  Â·  4Comments  Â·  Source: golang/protobuf

When I install the protobuf through go get, I received this message:
"- go get "github.com/golang/protobuf/proto"

  • package github.com/golang/protobuf/proto: /home/leduy99/Go/src/github.com/golang/protobuf exists but /home/leduy99/Go/src/github.com/golang/protobuf/.git does not - stale checkout?"
    How can I fix this? Thanks a lot :smile:
question

Most helpful comment

Hi, it seems that you already have copy the protobuf repo already downloaded into $GOPATH/src/github.com/golang/protobuf/proto that was not cloned from git? If you have no local changes, you could probably just delete $GOPATH/src/github.com/golang/protobuf and rerun go get github.com/golang/protobuf/proto.

All 4 comments

Hi, it seems that you already have copy the protobuf repo already downloaded into $GOPATH/src/github.com/golang/protobuf/proto that was not cloned from git? If you have no local changes, you could probably just delete $GOPATH/src/github.com/golang/protobuf and rerun go get github.com/golang/protobuf/proto.

Thank you very much :D I successfully fixed it ^^

On Sat, 15 Sep 2018 at 03:40, Joe Tsai notifications@github.com wrote:

Hi, it seems that you already have copy the protobuf repo already
downloaded into $GOPATH/src/github.com/golang/protobuf/proto that was not
cloned from git? If you have no local changes, you could probably just
delete $GOPATH/src/github.com/golang/protobuf and rerun go get
github.com/golang/protobuf/proto.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/protobuf/issues/703#issuecomment-421478313,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ajl4rP36arX0CfTaktXF8VLlwl-nD4W0ks5ubBQ4gaJpZM4Wo8iC
.

Wonderful to hear!

thanks for help @dsnet

Was this page helpful?
0 / 5 - 0 ratings