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

protoc-gen-go install problem #22

Open
ags-gunza opened this issue Feb 1, 2022 · 2 comments
Open

protoc-gen-go install problem #22

ags-gunza opened this issue Feb 1, 2022 · 2 comments

Comments

@ags-gunza
Copy link

Hi there!
We've got errors when trying to install protoc-gen-go.
Below is the log:
go get -u github.com/protobuf/[email protected]
go get: github.com/protobuf/[email protected]: 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

@caowei49
Copy link
Contributor

caowei49 commented Feb 8, 2022

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/[email protected]

@MichaelTharwat
Copy link

MichaelTharwat commented May 16, 2022

@ags-gunza Hi Andrey , Did it work ?

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

No branches or pull requests

3 participants