new_http_archive is not defined when build
Closed this issue · 0 comments
chenchuangc commented
when i git clone the master and try to build it , i follow the instructions
install bazel success , and my environment is mac os
➜ butteraugli git:(master) bazel version
Build label: 0.23.1
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Mar 4 10:40:32 2019 (1551696032)
Build timestamp: 1551696032
Build timestamp as int: 1551696032
then i follow the command ,but it appeared below ,
i am sorry for boring you ,but i can not find way
the code is just git clone from the respository and run on the master
➜ butteraugli git:(master)
➜ butteraugli git:(master) bazel build -c opt //:butteraugli
ERROR: /Users/admin/work/learn/30.picture_/code_/butteraugli/WORKSPACE:3:1: name 'new_http_archive' is not defined
ERROR: /Users/admin/work/learn/30.picture_/code_/butteraugli/WORKSPACE:11:1: name 'new_http_archive' is not defined
ERROR: /Users/admin/work/learn/30.picture_/code_/butteraugli/WORKSPACE:19:1: name 'new_http_archive' is not defined
ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '@bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '@bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
INFO: Elapsed time: 0.098s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
➜ butteraugli git:(master)