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

Proto_lint doesn't work on Apple M1 machine #235

Closed
pyhome99 opened this issue Dec 16, 2022 · 1 comment
Closed

Proto_lint doesn't work on Apple M1 machine #235

pyhome99 opened this issue Dec 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@pyhome99
Copy link

Issue Description

When I run proto_lint, I received the following error. It seems that the issue is related to the Apple M1 chip.

Log Output

ERROR: /private/var/tmp/_bazel_xyz/cb4175e9baa6d8770a9612ba7c54a261/external/rules_proto_grpc/buf/BUILD.bazel:14:13: configurable attribute "tool" in @rules_proto_grpc//buf:lint_plugin doesn't match this configuration. Would a default condition help?

Conditions checked:
 @bazel_tools//src/conditions:darwin_x86_64
 @bazel_tools//src/conditions:linux_x86_64

To see a condition's definition, run: bazel query --output=build <condition label>.

This instance of @rules_proto_grpc//buf:lint_plugin has configuration identifier 4a6f299. To inspect its configuration, run: bazel config 4a6f299.

For more help, see https://docs.bazel.build/configurable-attributes.html#why-doesnt-my-select-choose-what-i-expect.

rules_proto_grpc Version

4.0.1

Bazel Version

5.3.0

OS

MacOS Monterey

Link to Demo Repo

No response

WORKSPACE Content

No response

BUILD Content

No response

Proto Content

No response

Any Other Content

No response

@pyhome99 pyhome99 added the bug Something isn't working label Dec 16, 2022
@aaliddell
Copy link
Member

Hi, you need to update to at least version 4.2.0 of these rules, which is when Buf arm64 Darwin support was added: #178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants