$ go get經過許多Google嘗試,我正在尋找與私有存儲庫合作的方法。第一次嘗試:$ go get -v gitlab.com/secmask/awserver-goFetching https://gitlab.com/secmask/awserver-go?go-get=1https fetch failed.Fetching http://gitlab.com/secmask/awserver-go?go-get=1Parsing meta tags from http://gitlab.com/secmask/awserver-go?go-get=1 (status code 200)import "gitlab.com/secmask/awserver-go": parse http://gitlab.com/secmask/awserver-go?go-get=1: no go-import meta tagspackage gitlab.com/secmask/awserver-go: unrecognized import path "gitlab.com/secmask/awserver-go是的,它沒有看到元標記,因為我不知道如何提供登錄信息。第二次嘗試:跟隨https://gist.github.com/shurcooL/6927554。將配置添加到.gitconfig。[url "ssh://[email protected]/"] insteadOf = https://gitlab.com/$ go get -v gitlab.com/secmask/awserver-go --> not work$ go get -v gitlab.com/secmask/awserver-go.git --> work but I got src/gitlab.com/secmask/awserer-go.git是的,它可以工作,但是帶有.git我的項目名稱擴展名,我可以將其重命名為原始名稱,但是每次$ go get都做得不太好,還有其他方法嗎?
- 3 回答
- 0 關注
- 1214 瀏覽
添加回答
舉報
0/150
提交
取消