Skip to content
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

Add flag to specify paths for protobuf files #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codysoyland
Copy link

This adds support for specifying import paths for proto files.

Flag -protoPath added to twirp-swagger-gen, accepts comma-separated list of directories to search for proto files when importing.

I did not modify protoc-gen-twirp-swagger in the same way, but it should use the --proto_path argument from protoc. I didn't take the time to understand how to wire that argument, as I've been using twirp-swagger-gen instead.

@RoarkeRandall
Copy link

Would this fix the error?

Failure: plugin twirp-swagger: open foo/bar.proto: no such file or directory

Seems to be related to relative paths.

@avraham0
Copy link

Any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants