rules_go icon indicating copy to clipboard operation
rules_go copied to clipboard

document proto gRPC stub generation

Open udf2457 opened this issue 1 year ago • 4 comments
trafficstars

I've been bashing my head against a wall for a while now trying to figure out how to make gazelle, bzlmod and rules_go all play nicely together to generate Go gRPC stubs.

It would be nice if there documentation showing how it all fits together, ideally in conjunction with a skeleton example repo ?

udf2457 avatar Feb 11 '24 15:02 udf2457

I've been bashing my head against a wall for a while now trying to figure out how to make gazelle, bzlmod and rules_go all play nicely together to generate Go gRPC stubs.

It would be nice if there documentation showing how it all fits together, ideally in conjunction with a skeleton example repo ?

Hey, any luck with setting this up correctly? I have the same issue and I haven't been able to figure out what to do

affan-ahmed avatar Mar 26 '24 22:03 affan-ahmed

Hey, any luck with setting this up correctly? I have the same issue and I haven't been able to figure out what to do

Sadly no, having spent far too much time on it, I just ended up dumping manually generated files into my repo.

I've found Bazel to be a bit annoying like this. It works well once it is set up, but my god can it be a nightmare to setup !

I hope some kind soul comes along with an answer for this one.

udf2457 avatar Mar 27 '24 07:03 udf2457

Hey, any luck with setting this up correctly? I have the same issue and I haven't been able to figure out what to do

Sadly no, having spent far too much time on it, I just ended up dumping manually generated files into my repo.

I've found Bazel to be a bit annoying like this. It works well once it is set up, but my god can it be a nightmare to setup !

I hope some kind soul comes along with an answer for this one.

Is Gazelle not creating the generated gRPC stubs in the bazel output directory for you? If so, I have that working. The only problem is that I'm manually copying them over into my proto folders so I can have code completion in my editor which is a pain!

affan-ahmed avatar Mar 27 '24 09:03 affan-ahmed

I would have to refresh my memory and find the notes I made at the time, but I think the answer to your question is I was having both the issues, i.e. the one you fixed and the one you're continuing to have.

udf2457 avatar Mar 27 '24 11:03 udf2457