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

使用 Go 1.12及以上版本编译时的问题 #207

Closed
ccdsapgs opened this issue Apr 13, 2019 · 4 comments
Closed

使用 Go 1.12及以上版本编译时的问题 #207

ccdsapgs opened this issue Apr 13, 2019 · 4 comments

Comments

@ccdsapgs
Copy link

使用Go 1.12及以上版本编译时,在macOS和Linux下总是出错,提示"build cache is required, but could not be located: GOCACHE is not an absolute path". 换用Go 1.11.9版本后就可以了。应该是由于Go 1.12版本开始加入了对build cache 的强制要求导致的。v2ray/v2ray-core#1437 (comment) 提到使用Go 1.14beta 版本编译也会出错,看错误信息应该也是cache导致的。

@kslr
Copy link
Contributor

kslr commented Apr 14, 2019

这个问题的确存在,你有什么修复建议吗

@ccdsapgs
Copy link
Author

这个问题的确存在,你有什么修复建议吗

并没有…… google一番也没找到什么解决方案

@kslr
Copy link
Contributor

kslr commented Apr 15, 2019

>> infra/bazel/build.bzl

"GOCACHE=/tmp/.gocache"

@ccdsapgs
Copy link
Author

infra/bazel/build.bzl

"GOCACHE=/tmp/.gocache"

之前尝试过改成绝对路径,然而还是出错,我再尝试一下

@kslr kslr closed this as completed Apr 19, 2019
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

2 participants