-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bazel build error: unrecognized import path: "golang.org/x/sys" #89
Comments
Hm, it should "just work". Could you include the entire output from bazel build? |
@prattmic first thank you for your prompt reply! Specifically I run $ bazel build runsc in gvisor directory, the outputs are as follows: WARNING: ignoring http_proxy in environment. And here are some information that might be useful: Server:
Many thanks if you could help me with this prob |
Got the same error by following "Installing from Source" in project README.md. [rice@localhost gvisor]$ go version |
The problem is gone by setting HTTP_PROXY and HTTPS_PROXY environment before running bazel build. Thanks to the great wall... @YellyYU |
@newmanwang Would you tell me how and what did you set for HTTP_PROXY and HTTPS_PROXY ? |
Make HTTP_PROXY and HTTPS_PROXY point to a proxy that beat the greate firewall, e.g HTTPS_PROXY=192.168.16.1:1080 @wuqixuan |
@newmanwang hi, I also meet the same problem like @YellyYU , and I have set the http_proxy and https_proxy environment. However, from the build log, the fist line "WARNING: ignoring http_proxy in environment" tells that this setting is ignored by bazel. Have you meet this issue? Could you tell me how to fix that problem.. |
@prattmic Try HTTPS_PROXY/HTTP_PROXY instead of https_proxy/http_proxy |
This problem is gone after I pulled the latest source code and rebuild... |
Hi guys:
I a new-learner of gVisor and was following the README instructions to look into gVisor these days.
Everything goes well when I download the latest nightly build, move it to /usr/local/bin, configuring docker in /etc/docker/daemon.json, and run the command $ docker run --runtime=runsc ...
And the runsc command such as $ runsc run ... also seems normal.
However, when I sought to compile runsc from source, I got error "unrecognized import path: "golang.org/x/sys"" at $ bazel build runsc.
I googled for possible solutions but none of them can get me out of this.
I am sure I got the contents from sources like https://github.com/golang/sys.git under my $GOPATH/src/golang.org/x/ directory, but the error just won't go.
I hope anyone here could help me. Many thanks.
The text was updated successfully, but these errors were encountered: