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

Multiple files in directory #251

Open
pablodz opened this issue Aug 5, 2021 · 2 comments
Open

Multiple files in directory #251

pablodz opened this issue Aug 5, 2021 · 2 comments

Comments

@pablodz
Copy link

pablodz commented Aug 5, 2021

Hello there,
I was trying to compile all proto files in a repo with a folder structure similar to:

./internal/v1/services/grpc_apinode/apinode_api.proto
./internal/v1/services/grpc_nlp/agent/agent_api.proto
./internal/v1/services/grpc_nlp/classification/classification_api.proto
./internal/v1/conversation/conversation.proto
./internal/v1/campaign/campaign.proto
./internal/v1/comment/comment.proto
./internal/v1/agent/agent.proto
./internal/v1/variable/variable.proto

However when I put -d internal/v1 dockers prints Missing input file.

docker run --rm -v `pwd`:/defs --name prueba namely/protoc-all -d internal/v1 -l go -o docker-generated

What am I doing wrong? Thanks in advance

@pablodz
Copy link
Author

pablodz commented Aug 5, 2021

if [[ $GEN_LANG == "go" ]]; then
FIND_DEPTH="-maxdepth 1"

I think maxdepth should be more by default, not 1 for golang

@eleduardo
Copy link

I am facing this exact problem as well... why is there a limit in the depth of find? if you docker run into the container and do this manually you can see that running the find command does not find any of the proto files (I have a similar structure) should that maxdepth be removed?

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 a pull request may close this issue.

2 participants