共计 548 个字符,预计需要花费 2 分钟才能阅读完成。
先说结论。
- 把 go 版本降到 1.19;
- 补齐必要的依赖项的 go.sum 条目。
细说第一点:
1-1. win amd64 版 go,https://dl.google.com/go/go1.19.13.windows-amd64.msi
1-2. linux amd64 版 go:
set -e -o pipefail
curl -Lo go.tar.gz https://go.dev/dl/go1.19.13.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go.tar.gz
rm go.tar.gz
sudo ln -s /usr/local/go/bin/go /usr/bin/go
第二点一把搞定(linux 为例):
cd
git clone https://github.com/ginuerzh/gost.git
cd gost/cmd/gost
go get github.com/mdlayher/[email protected]
go get github.com/mdlayher/[email protected]
go get github.com/ginuerzh/gost
go get golang.org/x/crypto/[email protected]
go build
正文完