diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 0020139d3..6179124cc 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -39,7 +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"' + echo 'To fix this check, run "go run golang.org/x/tools/cmd/goimports -w $(find . -name \'*.go\' | grep -v \'_gen.go\$\') && go mod tidy"' exit 1 fi