软件包:无法下载,http://*.com/*/*.git 使用了不安全的协议

package: cannot download, http://*.com/*/*.git uses insecure protocol

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

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

自托管 Git 存储库 运行s 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 解决了错误。