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.

PCRE passes even if ggrep is not installed on OS X

See original GitHub issue

I was scratching my head because some hooks were passing even though they should clearly have failed.

When running run --all-files with the --verbose flag, I noticed why this was happening:

[do_not_commit] Block if "DO NOT COMMIT" is found..................................................................Passed
hookid: do_not_commit

Executable `ggrep` not found

It seems like the correct behaviour would be to fail and warn user to install ggrep?

For the record, I installed ggrep as follow: brew install homebrew/dupes/grep, and the hooks now fail as expected.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cmercommented, Jan 23, 2017

And I’m wrong again. Installing ggrep now worked. Sorry about this. I need a nap.

0reactions
asottilecommented, Jan 23, 2017

😄 cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

macos - grep - Stack Overflow
--with-default-names is removed from brew. I had to brew install grep to get ggrep and then do as @rymo says and do alias...
Read more >
How to install and use GNU Grep in macOS - Ask Different
The answer from nohillside needs updating as follows: If grep was already installed by brew, remove grep first.
Read more >
PCRE(3) Library Functions Manual
In the 16-bit library, strings are passed as vectors of unsigned 16-bit ... This implies UTF support, even if you have not explicitly...
Read more >
Perl Regex Removed From Grep in Mountain Lion
As far as I know, all GNU software went to GPLv3. Literally all of it. Even things with no substantial updates since 2007....
Read more >
Regular expressions in grep ( regex ) with examples - nixCraft
Regular Expressions in grep - Learn how to use regex in grep using egrep command to search for text/words in Linux, macOS or...
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