doom upgrade 更新版本时,通过https协议访问依赖库,网络不稳定导致失败。
尝试把失败的库协议替换为ssh时,可以提高成功的机率。
除了手动设置成ssh协议方式, doom upgrade
命令该怎么实现ssh方式更新库?
doom upgrade 更新版本时,通过https协议访问依赖库,网络不稳定导致失败。
尝试把失败的库协议替换为ssh时,可以提高成功的机率。
除了手动设置成ssh协议方式, doom upgrade
命令该怎么实现ssh方式更新库?
我很菜,只会在代理上动手脚(… win cfw, mac clashx pro, linux v2raya都可以用一些方法代理全局流量,就这样(逃
可以用 git 的 url insteadof 配置,配合 ghproxy.com 之类的代理服务,比如下面这个
git config --global url."https://ghproxy.com/https://github.com".insteadOf "https://github.com"
git config --global url."git://ghproxy.com/git://github.com".insteadOf "git://github.com"
设置了全局 insteadOf,支持执行clone:
$ git remote -v
origin https://ghproxy.com/https://github.com/emacsmirror/swift-playground-mode.git (fetch)
origin https://ghproxy.com/https://github.com/emacsmirror/swift-playground-mode.git (push)
但在doom 更新时,还是原来的路径:
> Updating packages (this may take a while)...
x The package manager threw an error-mode...
x Last 16 lines of straight's error log:
[Return code: 0]
$ cd /data/data/com.termux/files/home/.emacs.d/.local/straight/repos/swift-helpful/
$ git log --oneline --no-merges b46c580e4b8f55761431ec677866de3fc66592e9 \^b46c580e4b8f55761431ec677866de3fc66592e9
[Return code: 0]
$ cd /data/data/com.termux/files/home/.emacs.d/.local/straight/repos/swift-playground-mode/
$ git rev-parse HEAD
111cde906508824ee11d774b908df867142a8aec
[Return code: 0]
$ cd /data/data/com.termux/files/home/.emacs.d/.local/straight/repos/swift-playground-mode/
$ git config --get remote.origin.url
https://github.com/emacsmirror/swift-playground-mode.git
[Return code: 0]
$ cd /data/data/com.termux/files/home/.emacs.d/.local/straight/repos/swift-playground-mode/
$ git fetch origin
fatal: unable to access 'https://github.com/emacsmirror/swift-playground-mode.git/': OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0