我正在尝试运行 go get -u -v
在我的应用程序存储库中,但我收到一个错误:
$ go get -u -v
package */*/*: cannot download, http://*.com/*/*.git uses insecure protocol
自托管 Git 存储库使用
http
运行,而不是 https
.如何强制使用http
忘记https
?
最佳答案
使用 $ go help get
提到:
$ go help get
...
The -insecure flag permits fetching from repositories and resolving
custom domains using insecure schemes such as HTTP. Use with caution.
...
因此
$ go get -u -v -insecure
解决了错误。
关于git - 包 : cannot download, http ://*. com/*/*.git 使用不安全的协议(protocol),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62227613/