Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
imooccodejesse opened this issue May 9, 2024 · 2 comments
Closed

Comments

@imooccodejesse
Copy link

imooccodejesse commented May 9, 2024

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
Copy link
Collaborator

mostynb commented May 11, 2024

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
Copy link
Author

imooccodejesse commented May 16, 2024

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.

@mostynb mostynb closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants