From feabcdfe9fe2528897b789f1447c4c84c3dfd59a Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 13 Jan 2023 08:58:41 -0500 Subject: [PATCH] Show help message when goimports/go mod tidy breaks the build --- .github/workflows/pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 655c1280..444a30e4 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -39,6 +39,7 @@ jobs: run: | git status --porcelain if [ -n "$(git status --porcelain)" ]; then + echo 'To fix this check, run "goimports -w $(find . -name '*.go' | grep -v '_gen.go$') && go mod tidy"' exit 1 fi