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
Updating all dependencies (@bufbuild/protobuf, @bufbuild/protoc-gen-es, @connectrpc/connect, @connectrpc/connect-web) to V2 results in the error Could not resolve "./buf/validate/validate_pb". From the migration guide it is very clear that this issue is to be resolved by setting include_imports: true in the buf.build file. Great!
What is missing is how to include it in a protoc build command. I cannot figure out how to correctly enable that setting from the cli.
martijnjanssen
changed the title
Documentation for enabling 'include_imports' in protoc build command
Enabling 'include_imports' in protoc build command broken (or documentation gap)
Dec 10, 2024
Updating all dependencies (@bufbuild/protobuf, @bufbuild/protoc-gen-es, @connectrpc/connect, @connectrpc/connect-web) to V2 results in the error
Could not resolve "./buf/validate/validate_pb"
. From the migration guide it is very clear that this issue is to be resolved by settinginclude_imports: true
in thebuf.build
file. Great!What is missing is how to include it in a
protoc
build command. I cannot figure out how to correctly enable that setting from the cli.protoc \ -I. \ -I./bufbuild/protoc-gen-validate \ -I./proto \ --plugin ./node_modules/.bin/protoc-gen-es \ --es_out ./proto \ --es_opt target=ts \ --es_include_imports \ *.proto
Results in the error:
Unknown flag: --es_include_imports
I cannot seem to figure out how to set it, or it is broken, given how new the setting is.
The text was updated successfully, but these errors were encountered: