question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

find: unknown predicate `-not -path '

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nmoinvazcommented, May 21, 2020

#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.

0reactions
amanagrcommented, May 21, 2020

Thanks for fixing this quickly!!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found