http_archive: Build file is not a regular file #20064
Unanswered
abitofhelp
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You need to use a label for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Source Code: https://github.com/abitofhelp/hellobzlmod.git
Hello,
I am fairly new to Bazel & Gazelle and am creating a simple proof-of-concept app. It is the ubiquitous "hello world" using ProtoBuf. Everything builds properly, except when I added 'import "google/api/annotations.proto";' to the hello_world.proto file. I am using bzlmod and discovered that googleapis is undefined.
The best solution that I can think of is to add an http_archive to WORKSPACE.bzlmod that points to "https://github.com/googleapis/googleapis/archive/refs/heads/master.zip" Since it has Bazel build files, I should be able to use the repository in my build. After applying this idea, the build failed and reported that the Build files were "Not a regular file". They are text files, so I don't know what is wrong.
I am hoping that someone can give me hints or tell me how folks are resolving this problem. Will it be easier in Bazel 7 with bzlmod? I'd really appreciate your help and thank you for your time and interest.
WORKSPACE.bzlmod
ERROR MESSAGE:
Beta Was this translation helpful? Give feedback.
All reactions