在使用 git clone
或者 git submodule update --init --recursive
有时会遇到下面的问题:
gnutls_handshake() failed: The TLS connection was non-properly terminated.
这里查询了一些不同的方法,我这边实测有效的是:
git config --global --unset http.proxy
git config --global --unset https.proxy
因为拉取第三方应用会有很多的包需要拉取,所以当运行完上述的命令后可能当前失败的包可以了,下面的包又失效的,然后我就又运行了一遍,就只要碰到上面的错误,就运行一遍 --unset 的命令,然后重新运行 git submodule update --init --recursive
就可以了。
如果需要多次,可以写一个 .sh 的脚本,每次运行一下小脚本就可以,再不行,看 third_party 下载的是什么 github 项目,cd 到对应路径下自己 git clone 也可以的。
唉,编译个东西太难了。