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

Bazel package recognition error: .bzl file must have a corresponding package #22165

Open
devin-ai-integration bot opened this issue Apr 28, 2024 · 1 comment

Comments

@devin-ai-integration
Copy link

Encountering an issue where Bazel does not recognize 'toolchains.bzl' as part of a package despite the presence of a corresponding BUILD file. The error message is: 'Every .bzl file must have a corresponding package, but '@rules_proto_grpc//modules/core/protoc:toolchains.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.' This occurs even after verifying the submodule is at the correct commit, the BUILD file is in place, and the WORKSPACE file is correctly configured. Seeking assistance to resolve this issue.

@sgowroji
Copy link
Member

Hi @devin-ai-integration, Could you please elaborate the query with complete details and a reproducing example code. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant