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

Directory flag specifies maxdepth 1 #61

Closed
blimmer opened this issue Apr 19, 2018 · 4 comments
Closed

Directory flag specifies maxdepth 1 #61

blimmer opened this issue Apr 19, 2018 · 4 comments

Comments

@blimmer
Copy link
Contributor

blimmer commented Apr 19, 2018

Today, pulling protofiles using the -d flag specifies a max-depth of 1.

PROTO_FILES=(`find ${PROTO_DIR} -maxdepth 1 -name "*.proto"`)

Is there a specific reason for this? Can it be configurable?

We have a directory structure that looks like this:

src/main/proto/company_pb
├── billing
│   └── events.proto
├── commons
│   ├── sqs
│   │   ├── sqs_attribute.proto
│   │   ├── sqs_attributes.proto
│   │   └── sqs_message.proto
│   └── timestamp.proto

So the maxdepth flag causes the command to fail out with this error

Missing input file.

because no files are passed to the underlying method.

@mhamrah
Copy link
Contributor

mhamrah commented Apr 19, 2018

There's no reason for this, except how we do it at namely. I'll try to throw something together, and PR's always welcome!

@blimmer
Copy link
Contributor Author

blimmer commented Apr 19, 2018

I just tried it out locally by just removing the -maxdepth option and things worked swimmingly for me! I'm happy to do a PR to this project.

The biggest question I have is whether or not we need to maintain the old behavior by default, or if we're comfortable just removing the maxdepth option. I'm open to doing it either way. Thoughts?

@mhamrah
Copy link
Contributor

mhamrah commented Apr 19, 2018 via email

@arturgspb
Copy link

If you like me in 2020+ don't understand why code with blocking max-depth come back - read #112

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

No branches or pull requests

3 participants