bazel icon indicating copy to clipboard operation
bazel copied to clipboard

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

Open devin-ai-integration[bot] opened this issue 10 months ago • 1 comments

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.

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

sgowroji avatar Apr 29 '24 04:04 sgowroji