$ rg --version
ripgrep 12.0.0
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
Also,
$ git --version
git version 2.25.1
Homebrew
macOS. Also seems to occur on Linux.
When running ripgrep on a git clone with submodules, it prints the following error:
$ rg -i foobar
../../../../.git/modules/path/to/submodule/commondir: No such file or directory (os error 2)
I suspect this is related to #1446
git init foo
git init bar
cd foo
touch file
git add file
git commit -m 'initial commit'
cd ../bar
touch file
git add file
git commit -m 'initial commit'
git submodule add ../foo path
rg string
The ripgrep invocation will print
../.git/modules/path/commondir: No such file or directory (os error 2)
No warnings. Never warnings.
Oof, sorry. You're right. This is a regression.
I will put out a new release soonish. I'll give it a few days in case any other regressions pop up.
Any chance you could cut a release now? This issue is driving me batty!
I'd recommend just building from source if it's that bad. Otherwise: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#release
I've released ripgrep 12.0.1 with a fix for this.
Most helpful comment
I've released ripgrep 12.0.1 with a fix for this.