buchgr / bazel-remote

A remote cache for Bazel
https://bazel.build
Apache License 2.0
576 stars 150 forks source link

Build failed when executing bazelisk run :bazel-remote-image #745

Closed imooccodejesse closed 2 months ago

imooccodejesse commented 2 months ago

OS: Ubuntu 18.04.6 bazel ver: 7.1.2 bazel-remote ver: 2.3.9 executed cmd: bazelisk run :bazel-remote-image

Error message:

ERROR: /home/fooUser/.cache/bazel/_bazel_jesseha/e3f7713d09e01c16632e8bfb216ed4bf/external/io_bazel_rules_go/BUILD.    bazel:71:16: in (an implicit dependency) attribute of go_context_data rule @@io_bazel_rules_go//:go_context_data: in whitelist_function_transition attribute of go_context_data rule @@io_bazel_rules_go//:go_context_data: package group '@@bazel_tools//tools/whitelists/function_transition_whitelist: function_transition_whitelist' is misplaced here (they are only all owed in the visibility attribute)

image

mostynb commented 2 months ago

Hi, I think you will need an older version of bazel to build that version of bazel-remote. If you set USE_BAZEL_VERSION=6.5.0 then bazelisk will use that version, the build should work.

However, bazel doesn't seem to know how to run the image targets anymore. If you want to build and run locally, I suggest using the //:bazel-remote or //:bazel-remote-linux-amd64 targets.

imooccodejesse commented 2 months ago

Hi. Thanks for looking into the issue. I solved the issue by pulling the docker image from the public docker image repo instead of building the image.