How to `go get` a private repo

preview_player
Показать описание
Working with private repos in Go can be a pain in the you-know-what. In this video, I show you two techniques for soothing that pain.

Notes:

1. Set GOPRIVATE

- or -

2. Configure git to fetch via SSH instead of HTTP(S):

- or -

edit ~/.gitconfig manually

3. Configure .netrc with an API key for HTTPS authentication

Futher reading on the topic:

Рекомендации по теме
Комментарии
Автор

I'm surprised, yesterday I saw a couples of your videos, because I getting started with Go. Currently I have the problem with private repos, but today I found that you uploaded a video speaking about this. Thanks for your valuable content.

mariocortes
Автор

You saved my life sir, thank you! Jokes aside, this was the only solution that worked for me, and it went much simplier than I expected.

ivantsers
Автор

Something wrong with the sound. Probably noise reduction is reducting too much.

deshtechno
Автор

This types of situations are a waste of time in a Go dev team

Xmasparol