find: unknown predicate `-not -path '
See original GitHub issueWe see this error on CircleCI builds: eg: https://app.circleci.com/pipelines/github/zulip/zulip/7488/workflows/7906c5d1-5032-47a1-88f3-60e79a9631d1/jobs/43293/parallel-runs/0/steps/0-114
find: unknown predicate `-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**''
Error running `['find', '/home/circleci/zulip', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+']`: Command '['find', '/home/circleci/zulip', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+']' returned non-zero exit status 1.
When running:
pip install codecov && codecov
Pinning the version of codecov==2.0.15
fixes this (since it doesn’t use find
.)
We use buildpack-deps:bionic-scm
as our base image for CI builds.
Our CI config file - https://github.com/zulip/zulip/blob/master/.circleci/config.yml
Let me know if you need any more details to debug this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
bash - find: unknown predicate - Ask Ubuntu
It seems to me that somehow the find command is interpreting the resulting filename as an argument, but I haven't found a way...
Read more >Unknown predicate error in "find" command - Stack Overflow
find /path/to/my/folder -type f -name="*~". However, I am getting the error: find: unknown predicate '-name=*~'. Does anyone have an idea ?
Read more >find: unknown predicate `-p' - Unix & Linux Stack Exchange
I need the file modification times in order to copy them into appropriate directories and I could not find a way to combine...
Read more >Unknown predicate - Common causes and quick fixes - Opster
A detailed guide on how to resolve errors related to "Unknown predicate" ... can be found inside the bin/ directory of the Elasticsearch...
Read more >"find: unknown predicate" with folder names
Hi I have several folders with starting with a "-" in the folder names. They work with most commands, but the find command...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#217 removes find command entirely using python to do file searching and excluding. It can help here too because too many inconsistencies with find command and not supported on Windows.
Thanks for fixing this quickly!!