rg
fails to find matches on Github Actions?
#2241
-
Hi, I have a CI job that I'm migrating from a rather unknown CI system named "Drone" to Github Actions. This job runs Here's what it looks like in our CI process on Actions; I'm going to intersperse this with some commentary:
So, here at It isn't the only file that should match, I'm merely attempting to demonstrate that at least one file should match. Let's run
Here we've passed According to
Okay then:
I also tried
which occurs right between the two debug logs. This does seem like a odd call, and it made me double check that I didn't have like a random When I run
But my local For reference:
We run things in containers, so the exact same |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
What happens if you run If that doesn't work, can you try running The "file not found" error for |
Beta Was this translation helpful? Give feedback.
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.