{Fast, Correct} - Choose two
Bazel with proxy.
The bazel now, can not work under a network with proxy, so I make this project and add a new package download method, which using simple wget command.
Please confirm your machine has wget installed
-
Install bazel:
download code:
git clone https://github.com/ixuexi/bazel.gitbuild bazel:
bazel build //src:bazelbinary is at:
bazel-bin/src/bazel -
Setup proxy env:
declare proxy env by:
export http_proxy=http://proxy.example.com:8080
export https_proxy=http://proxy.example.com:8080
export ftp_proxy=http://proxy.example.com:8080or edit /etc/wgetrc file and append the lines:
http_proxy=http://proxy.example.com:8080
https_proxy=http://proxy.example.com:8080
ftp_proxy=http://proxy.example.com:8080if the proxy need auth, the url will be:
http://username:password@proxy.example.com:8080 -
Setup wget (optional):
you can change the wget command with absolute path by:
export BAZEL_WGET=/home/somedir/wget
(default: wget)you can change the wget options by:
export BAZEL_WGET_OPT="--timeout=30"
(default is: --tries=3 --timeout=15 --no-check-certificate) -
Changlog:
- bazel clear the env http_proxy by default, just remove it
- try download by default method, if error, then use wget instead
- add a wget download method, which direct use wget command on your machine
-
Follow our tutorials:
- Bazel command line
- Rule reference
- Use the query command
- Extend Bazel
- Write tests
- Roadmap
- Who is using Bazel?
See CONTRIBUTING.md
Bazel is released in 'Beta'. See the product roadmap to learn about the path toward a stable 1.0 release.