What happened?
format.sh uses grep -vFxf <(git ls-files --deleted) to exclude deleted files from the formatter input. When git ls-files --deleted returns nothing (normal for a clean checkout), the pattern file is empty. BusyBox grep -vFxf with an empty pattern file exits 1 and produces no output, where GNU grep passes all lines through. The || true swallows the exit code but not the lost output, leaving files="" for every language — so no formatter ever runs.
Version
Development (host) and target OS/architectures:
Output of bazel --version:
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response
What happened?
format.shusesgrep -vFxf <(git ls-files --deleted)to exclude deleted files from the formatter input. Whengit ls-files --deletedreturns nothing (normal for a clean checkout), the pattern file is empty. BusyBoxgrep -vFxfwith an empty pattern file exits 1 and produces no output, where GNU grep passes all lines through. The|| trueswallows the exit code but not the lost output, leaving files="" for every language — so no formatter ever runs.Version
Development (host) and target OS/architectures:
Output of
bazel --version:Version of the Aspect rules, or other relevant rules from your
WORKSPACEorMODULE.bazelfile:Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response