编译xray时老报错
go: github.com/ghodss/yaml@v1.0.1-0.20190212211648-25d852aebe32: Get “https://proxy.golang.org/github.com/ghodss/yaml/@v/v1.0.1-0.20190212211648-25d852aebe32.mod”: dial tcp 172.217.24.17:443: i/o timeout
Building targets go: github.com/ghodss/yaml@v1.0.1-0.20190212211648-25d852aebe32: Get “https://proxy.golang.org/github.com/ghodss/yaml/@v/v1.0.1-0.20190212211648-25d852aebe32.mod”: dial tcp 172.217.24.17:443: i/o timeout
Makefile:176: recipe for target ‘/mnt/disk2/project/lede/build_dir/target-mipsel_24kc_musl/Xray-core-1.4.2/.built’ failed make[3]: *** [/mnt/disk2/project/lede/build_dir/target-mipsel_24kc_musl/Xray-core-1.4.2/.built] Error 1 make[3]: Leaving directory ‘/mnt/disk2/project/lede/package/small/xray-core’ time: package/small/xray-core/compile#0.20#0.89#64.79 ERROR: package/small/xray-core failed to build. package/Makefile:114: recipe for target ‘package/small/xray-core/compile’ failed make[2]: *** [package/small/xray-core/compile] Error 1 make[2]: Leaving directory ‘/mnt/disk2/project/lede’ package/Makefile:110: recipe for target ‘/mnt/disk2/project/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile’ failed make[1]: *** [/mnt/disk2/project/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory ‘/mnt/disk2/project/lede’ /mnt/disk2/project/lede/include/toplevel.mk:228: recipe for target ‘world’ failed make: *** [world] Error 2 jason@ubuntu:/mnt/disk2/project/lede$ jason@ubuntu:/mnt/disk2/project/lede$
原因,上述连接被和谐了。
解决办法:
jason@ubuntu:/mnt/disk2/project/lede$ export GO111MODULE=on jason@ubuntu:/mnt/disk2/project/lede$ export GOPROXY=https://goproxy.cn jason@ubuntu:/mnt/disk2/project/lede$
参考链接
https://github.com/goproxy/goproxy.cn https://goproxy.cn/
|