-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
New protobuf workflow won't output generated files #836
Comments
It's because you are not telling the proto compiler what package the proto should generate.
in the proto file. |
Amazing! I had that option off since IIRC it caused trouble with the previous proto mechanism. This is great - let me know if/how I can help with documentation! I put this together by poking around back and forth in the examples dir, but it's little things like this that I missed. Time to apply this to my real project! |
Glad it works for you. |
Will gazelle be able to generate the BUILD files on its own? They're somewhat finnicky and tedious. One thing that wasn't clear to me - and may still not be - is the interaction between |
Yes, gazelle will generate both the The |
Sounds good to me! I've just finished converting our project to use this new structure, and it's much cleaner. Definitely a step forward! Looking forward to gazelle generation and the next big release! I'll close this issue - thanks for your help! |
I thought I would give the new protobuf rules a try, so perhaps they are not ready for primetime - forgive me if I'm jumping the gun or misunderstanding something! I'm still a bit new to Bazel.
When trying to build, I'm getting an error about outputting the generated files:
➜ bazel-proto git:(master) ✗ bazel build //... INFO: Found 5 targets... ERROR: /Users/trystanjohnson/Documents/go/src/github.com/trystanj/bazel-proto/proto/BUILD.bazel:10:1: output 'proto/github.com/trystanj/bazel-proto/proto/demo.pb.go' was not created. ERROR: /Users/trystanjohnson/Documents/go/src/github.com/trystanj/bazel-proto/proto/BUILD.bazel:10:1: not all outputs were created or valid.
If I generate the file myself it works:
Am I missing a step or configuration in my Bazel setup?
Here's the minimal example I'm trying to get working: https://github.com/trystanj/bazel-proto
Bazel version
The text was updated successfully, but these errors were encountered: