且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用go模块在GAE SE Go 1.11上导入私有存储库?

更新时间:2023-11-18 23:26:46

发送github凭据以获取:

Send github credentials to go get:

git config credential.helper '!f() { sleep 1; echo "username=${GIT_USER}\npassword=${GIT_PASSWORD}"; }; f'

export GIT_USER=github_user
export GIT_PASSWORD=github_password_or_token

go get github.com/foo/libpackage