You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a local proto directory that depends on googleapis/googleapis remote module. When I import the remote type, the local generated code doesn't use remote deps. The generated code is as follows:
Hey @coobeet, buf does not generate code for dependencies, unless you specify the --include-imports flag. For Go, you don't notice because the googleapis/googleapis proto files set a go_package option that points to pregenerated code.
The workaround is to use two buf.gen.yaml files, and run the JS one with buf generate --template buf.gen.js.yaml --include-imports.
Describe the bug
I'm working with a local proto directory that depends on
googleapis/googleapis
remote module. When I import the remote type, the local generated code doesn't use remote deps. The generated code is as follows:The
Operation
type should be imported from remote deps, but instead it's importing from local files which doesn't exsit.My
buf.yaml
is as follows:My
buf.gen.yaml
is:The text was updated successfully, but these errors were encountered: