Context
Is there a way to have gazelle run in dry-run mode?
I'd like to create a CI job that runs gazelle with dry-run and fails if gazelle finds any changes.
Something like this
$ bazel run //:gazelle --dry-run || exit 1
Different Approach
I think this can be accomplished by running the command and seeing if git finds any changes, but I would prefer a non-git approach.