https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more
https://golang.org/ref/mod#private-modules
https://golang.org/ref/mod#vcs-find
https://golang.org/doc/tutorial/create-module
https://sagikazarmark.hu/blog/vanity-import-paths-in-go/
为了gitlab-ci在构建时拉取私有仓库依赖,构建工作使用的docker容器的dockerfile需要加上:
|
|
其中的id_rsa为部署密钥,需要在私有仓库中添加部署密钥 上述参考 https://cloud.tencent.com/developer/article/1602151 https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository
[阅读全文]