2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2024-11-22 15:56:24 +00:00

tests: docs-up-to-date: show diff when failed

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2022-08-10 11:42:16 +02:00
parent 82f7d662c7
commit 02ca54f141
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF

View File

@ -68,7 +68,7 @@ tests:
docs-up-to-date: docs-up-to-date:
@$(MAKE) docs @$(MAKE) docs
@git diff --quiet docs || (echo "Please regenerate the documentation with 'make docs'"; exit 1) @git diff --quiet docs || (git --no-pager diff; echo "Please regenerate the documentation with 'make docs'"; exit 1)
check-fmt: check-fmt:
@[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] @[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]