diff --git a/build/bazelutil/check.sh b/build/bazelutil/check.sh index d881c6e76424..f446fb13f4d8 100755 --- a/build/bazelutil/check.sh +++ b/build/bazelutil/check.sh @@ -79,7 +79,7 @@ fi # We exclude stringer and add-leaktest.sh -- the former is already all # Bazelfied, and the latter can be safely ignored since we have a lint to check # the same thing: https://github.com/cockroachdb/cockroach/issues/64440 -git grep '//go:generate' -- './*.go' | grep -v stringer | grep -v 'add-leaktest\.sh' | while read LINE; do +git grep '//go:generate' 'pkg/**/*.go' | grep -v stringer | grep -v 'add-leaktest\.sh' | while read LINE; do if [[ "$EXISTING_GO_GENERATE_COMMENTS" == *"$LINE"* ]]; then # Grandfathered. continue