Source From Here
QuestionI started working on a Go project and it uses some private modules from Github private repos and whenever I try to run go run main.go it gives me a below 410 Gone error:
I can easily clone private repo from terminal which means my ssh keys are configured correctly. I read here that I need to set GOPRIVATE environment variable but I am not sure how to do that.
HowTo
Short Answer:
OR If you want to allow all private repos from your organization
Long Answer:
Check "Module configuration for non-public modules" for more information:
Note on the usage of ssh:
If you use ssh to access git repo (locally hosted), you might want to add the following to your ~/.gitconfig:
- [url "ssh://git@git.local.intranet/"]
- insteadOf = https://git.local.intranet/
沒有留言:
張貼留言