美文网首页
Golang Note | [solved] go get ge

Golang Note | [solved] go get ge

作者: WangLane | 来源:发表于2020-08-11 16:43 被阅读0次

Description:

I want to install goproto, so I

What did you do?

go get google.golang.org/protobuf

What did you expect to see?

no error.

What did you see instead?

build constraints exclude all Go files in xxx

Solution:

Protobuf is not a package, So cannot use go get to install.
use this :

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

or install all packages under protobuf:

go get -u github.com/golang/protobuf/...

相关文章

网友评论

      本文标题:Golang Note | [solved] go get ge

      本文链接:https://www.haomeiwen.com/subject/dnqwrktx.html