ripgrep leaves /usr/crates2.json / .crates.toml files

Check-list

  • I did not find the issue in the existing issues
  • I can reproduce the issue with unmodified Buildroot from this repository, not from a fork somewhere else
  • I can reproduce the issue on the latest commit of the branch I'm using:
    • stable 24.05
  • I can reproduce the issue after running make clean; make

What I did

Selected BR2_PACKAGE_RIPGREP


What happens

$ ls target/usr/.* target/usr/.crates.toml target/usr/.crates2.json


What was expected

No stray dotfiles.