-
Notifications
You must be signed in to change notification settings - Fork 385
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
Gazelle is having a hard time with protobuf files #209
Comments
Yep, bazelbuild/bazel#3867 is the issue. Whenever you build a Since this is an issue with Unfortunately, the best advice I can offer at the moment is to check in pre-generated .pb.go files and include those in your |
Thanks @jayconrod I'll give that a try. When I re-run Gazelle, it will remake all of the customized build files right? How can I prevent that? |
This seems to be a step in the right direction. I added
I think Gazelle is out of touch with the dependencies. I was using Dep (haven't moved to vgo). |
Gazelle doesn't replace existing build files; it generates rules and merges those rules with rules in existing files (creating those files if they don't exist). So rules, attributes, and comments that Gazelle didn't generate will be intact.
When you re-run Gazelle, it should update all the dependencies. In the If any part of that isn't right, let me know and we can figure out what went wrong. |
bazelbuild/bazel#3867 has been fixed upstream, and will be released in Bazel 0.22 |
Do y'all have a strat for handling this in external dependencies until 0.22 is released? I just got burned by it when I upgrading to a new k8s.io/apimachinery that had this issue. |
Oh! I totally missed that go_repository had gained the |
I think this one can be closed now! 🎉 |
Our application is structured in the following way:
When ever we generate the BUILD files it seems to have a hard time importing the protobuf files. The following is the output from our BUILD file which fails.
It fails with the error code:
If I try to change the deps path by hand, and remove the github.com/xxx/jscode then it will find the right path but still fail to load:
Any ideas how to fix this?
I think bazelbuild/bazel#3867 is the same issue?
The text was updated successfully, but these errors were encountered: