plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Investigate import issue with grpc-ecosystem/gateway plugin

Open mfridman opened this issue 1 year ago • 0 comments

Likely related to https://github.com/grpc-ecosystem/grpc-gateway/issues/3801

The Generated SDK code is generating wrong imports and https://github.com/grpc-ecosystem/grpc-gateway/issues/3801#issuecomment-2072703665 explains fairly well how to reproduce it. Based on that structure when the separate_package=true option is enabled it builds an incorrect import in `service1/v1/service/service1v1gateway, specifically

- "buf.build/gen/go/.../service2/v1/service2v1grpc"
+ "buf.build/gen/go/.../service1/v1/service1v1grpc"

I suspect it's using a filename instead of the full path, but that's just a hunch.

Debug notes:

✅ strategy: directory ❌ strategy: all

mfridman avatar Apr 25 '24 17:04 mfridman