Closed lqkaixin closed 1 year ago
@lqkaixin what version of bazel are you building with? Testing with bazel 6.2.1
and builds are working. Otherwise could you try to remove cached files and build again: bazel clean --expunge
.
https://github.com/sub-mod/bazel-builds bazel install from here version bazel 3.4.1- (@non-git)
Hey @lqkaixin, could you try upgrade bazel following the guide here: https://bazel.build/install/redhat#installing-centos
after upgrade make build with zhe error blow
[root@VM-12-66-centos protovalidate-cc]# bazel --version
bazel 4.2.1
[root@VM-12-66-centos protovalidate-cc]# make build
bazel build //...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: SHA256 (https://github.com/bufbuild/buf/releases/download/v1.19.0/sha256.txt) = 794c0c7b64a72e23d57cee7e2aa1f071c573944de80e5313e4fffdc23fbad85a
ERROR: /root/.cache/bazel/_bazel_root/17624328e7d281e5c25ace7b2527d08b/external/rules_proto/proto/private/native.bzl:28:23: name 'proto_common_do_not_use' is not defined
INFO: Repository com_google_protobuf instantiated at:
/data/bazel-builds/protovalidate-cc/WORKSPACE:15:10: in
It still looks like a bazel version issue. As far as I can tell the protobuf library is expecting bazel to export proto_common_do_not_use
which is used in rule_proto
. It looks like the minimum version is 6.0.0
.
Use Bazelisk then zhe version of bazel is 6.2.1 and i make success. Thanks for your help. @emcfarlane
Description
make fail
bash-4.1# make build bazel build //... Extracting Bazel installation... Starting local Bazel server and connecting to it... ERROR: /opt/app-root/src/.cache/bazel/_bazel_root/3707ecce022575f07e9d5835925fe1bf/external/rules_buf/buf/internal/toolchain.bzl:147:20: name 'json' is not defined ERROR: in /opt/app-root/src/.cache/bazel/_bazel_root/3707ecce022575f07e9d5835925fe1bf/external/rules_buf/buf/repositories.bzl: Extension 'buf/internal/toolchain.bzl' has errors INFO: Elapsed time: 5.213s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) make: *** [Makefile:40: build] Error 1
how can i do?
Steps to Reproduce
Expected Behavior
Actual Behavior
Screenshots/Logs
Environment
centos 5.4.32-1
Possible Solution
Additional Context