language-formatters-pre-commit-hooks icon indicating copy to clipboard operation
language-formatters-pre-commit-hooks copied to clipboard

google-java-format Files list argument exceeds the OS limit

Open vorburger opened this issue 5 months ago • 1 comments

UNLESS I'm misinterpreting what's happening,

in https://github.com/enola-dev/enola/issues/1799,

it seems to me that in my mono-repo project I've hit the limit of passing (all) *.java files as arguments to google-java-format.

@macisamuele IFF there was https://github.com/google/google-java-format/issues/1285, would you be open to a PR using that here?

vorburger avatar Sep 22 '25 22:09 vorburger

@macisamuele IFF there was google/google-java-format#1285, would you be open to a PR using that here?

It turns out, see https://github.com/google/google-java-format/pull/1288, that google-java-format already (as-is) supports this:

Using @<filename> reads options and filenames from a file, instead of arguments.

@macisamuele if I create a PR which would write all filenames into a temporary file, and pass that, instead of stuffing everything into the command line, would you be open to reviewing and merging such a PR?

vorburger avatar Sep 25 '25 17:09 vorburger