Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试go get -u -v在我的应用程序存储库中运行,但收到错误消息:
go get -u -v
$ go get -u -v package */*/*: cannot download, http://*.com/*/*.git uses insecure protocol
自托管 Git 存储http库使用 https. 如何强制它使用http而忘记https?
http
https
提到使用$ go help get它:
$ 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解决了错误。
$ go get -u -v -insecure