Why bazel ignore http_proxy in environment??
See original GitHub issueEnvironment info
- Operating System: Linux
uname -a
Linux ihlee 4.4.0-93-generic #116~14.04.1-Ubuntu SMP Mon Aug 14 16:07:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- Bazel version (output of
bazel info release
):
bazel version
WARNING: ignoring http_proxy in environment.
Build label: 0.5.4
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Aug 25 10:00:00 2017 (1503655200)
Build timestamp: 1503655200
Build timestamp as int: 1503655200
I’m trying to build c++ source which contains tensorflow c++ API. But It continues to fail when it try to download tar.gz file… I think it is problem bazel ignore http_proxy in my linux environment… How can I configure for my proxy when I use bazel?? or Does anybody help me out??
bazel run -c opt //tensorflow/cc/example:basic_mlp
WARNING: ignoring http_proxy in environment.
ERROR: /home/ihlee/anaconda3/envs/tensorflow/tensorflow/tensorflow/cc/example/BUILD:20:1: error loading package 'tensorflow/core': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf//': java.io.IOException: Error downloading [http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz] to /home/ihlee/.cache/bazel/_bazel_ihlee/b725cdeaf9f7daef51d029bc8126d503/external/protobuf/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and referenced by '//tensorflow/cc/example:basic_mlp'.
ERROR: Analysis of target '//tensorflow/cc/example:basic_mlp' failed; build aborted.
INFO: Elapsed time: 15.492s
ERROR: Build failed. Not running target.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Does bazel support operation behind a corporate proxy, e.g. ...
The Bazel build tool even tells me "WARNING: ignoring http_proxy in environment." My theory is that it does not take the environment variable...
Read more >why bazel doesn't support proxy? - Google Groups
Well, you obviously need an HTTP proxy to access any HTTP server, if you need one in your environment. The problem is that...
Read more >All properties - Synopsys Detect - Black Duck Software
DEPRECATED: This property is changing. Please use --blackduck.proxy.ignored.hosts in the future. It will cause failure in 6.0.0 and be removed in 7.0.0.
Read more >Building with Bazel - Gerrit Code Review
To exclude tests that require very recent git client version: bazel test --test_tag_filters=-git-protocol-v2 //... To ignore cached test results:.
Read more >Command-Line Reference | Bazel
/dev/null indicates that all further `--bazelrc`s will be ignored, ... Note that repository rules see the full environment anyway, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I run into similar problem and as mentioned here, changing from http(s)_proxy to HTTP(S)_PROXY helped.
I make HTTP_PROXY=http://:@:* in my .bashrc,why my bazel is not useful?