Open ags-gunza opened 2 years ago
Hi,Andrey.you can try this: vim ~/.bashrc export GO111MODULE=on export GOPROXY=https://goproxy.io export GONOSUMDB=* source ~/.bashrc then you can go get -u github.com/protobuf/protoc-gen-go@v1.2.0
@ags-gunza Hi Andrey , Did it work ?
Hi there! We've got errors when trying to install protoc-gen-go. Below is the log: go get -u github.com/protobuf/protoc-gen-go@v1.2.0 go get: github.com/protobuf/protoc-gen-go@v1.2.0: invalid version: git ls-remote -q origin in /root/go/pkg/mod/cache/vcs/2a054212b9d0811250f7395e1bba5418745fbe9c52ed18d920706cc173b7b343: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled Confirm the import path was entered correctly. If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
and when using latest version:
go get -u github.com/protobuf/protoc-gen-go@latest go get github.com/protobuf/protoc-gen-go@latest: module github.com/protobuf/protoc-gen-go: git ls-remote -q origin in /root/go/pkg/mod/cache/vcs/2a054212b9d0811250f7395e1bba5418745fbe9c52ed18d920706cc173b7b343: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled Confirm the import path was entered correctly. If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
Looks like we are dealing with private repository
Thank you in advance, Andrey