From 7f1e7916f615211c518c73d26d67189b18ed1dd8 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 4 Nov 2019 07:15:28 +0000 Subject: [PATCH] build: show diffs made by checks --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index aa66e60295..0307016173 100644 --- a/Makefile +++ b/Makefile @@ -126,6 +126,7 @@ fmt: fmt-check: fmt @if git status --short | grep -E '^.M .*/[^.]+.go'; then \ + git diff | cat; \ echo "$@: working tree modified (possibly by gofmt)" >&2 ; \ false ; \ fi @@ -149,6 +150,7 @@ gendocgo-check: gendocgo goimports-check: @goimports -w -local "yunion.io/x/:yunion.io/x/onecloud" pkg cmd; \ if git status --short | grep -E '^.M .*/[^.]+.go'; then \ + git diff | cat; \ echo "$@: working tree modified (possibly by goimports)" >&2 ; \ echo "$@: " >&2 ; \ echo "$@: import spec should be grouped in order: std, 3rd-party, yunion.io/x, yunion.io/x/onecloud" >&2 ; \