Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2ray编译报错-“can't load package: “;”unknown import path“ #1198

Closed
wgjwillis opened this issue Apr 20, 2019 · 4 comments
Closed

Comments

@wgjwillis
Copy link

环境:
vmware 下的ubuntu 18.10 64bit,全局vpn,台湾的梯子。

报错代码:
`Cleaning module download cache (golang/go#27455)
https://v2ray.com?go-get=1go: finding v2ray.com/core/.go_work/build latest
go: finding v2ray.com/core/.go_work latest
can't load package: package v2ray.com/core/.go_work/build: unknown import path "v2ray.com/core/.go_work/build": cannot find module providing package v2ray.com/core/.go_work/build

make[3]: *** [Makefile:163: /home/willis/lede/build_dir/target-mips_24kc_musl/v2ray-core-4.18.0/.built] Error 1
make[3]: Leaving directory '/home/willis/lede/package/lean/v2ray'
time: package/lean/v2ray/compile#13.64#13.25#265.47
make[2]: *** [package/Makefile:109: package/lean/v2ray/compile] Error 2
make[2]: Leaving directory '/home/willis/lede'
make[1]: *** [package/Makefile:103: /home/willis/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/willis/lede'
make: *** [/home/willis/lede/include/toplevel.mk:218:world] 错误 2
`
vm的ubuntu 中浏览器能访问:v2ray.com/core/.go_work/build 但是跳转到https://godoc.org/github.com/v2ray/v2ray-core

请问如何解决?

@zxlhhyccc
Copy link
Contributor

挂梯子。。。。。

@wgjwillis
Copy link
Author

挂梯子。。。。。

挂了的,系统中用的vpn,全局,台湾的梯子。

@zxlhhyccc
Copy link
Contributor

路由里设置,用SSR挂全局

@wgjwillis
Copy link
Author

是的,我主路由用haporxy做了ssr的负载均衡。当编译到用go 去get的时候,节点会变,导致go get 失败。固定一个ssr节点的全局代理,或者vpn就没有问题了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants