Skip to content

rg fails to find matches on Github Actions? #2241

Answered by BurntSushi
roy-work asked this question in Q&A
Discussion options

You must be logged in to vote

What happens if you run rg -l -uuu -m 1 '#!/bin/(bash|ash|sh)' ./? That is, tell ripgrep to search the CWD. My guess is that ripgrep is somehow being tricked into searching stdin. It'd probably be good to make that clearer somehow in the --debug output.

If that doesn't work, can you try running rg with --trace instead of --debug and show the output here?

The "file not found" error for - is indeed a little perplexing, but also possibly hints at the stdin detection problem as well.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@roy-work
Comment options

@BurntSushi
Comment options

@roy-work
Comment options

@BurntSushi
Comment options

@c-git
Comment options

Answer selected by roy-work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants