-2

我正在尝试go get -u -v在我的应用程序存储库中运行,但收到​​错误消息:

$ go get -u -v
package */*/*: cannot download, http://*.com/*/*.git uses insecure protocol

自托管 Git 存储http使用 https. 如何强制它使用http而忘记https

4

1 回答 1

3

提到使用$ 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解决了错误。

于 2020-06-06T05:33:11.700 回答