Emit help message when check-mod fails (#8157)

pull/8165/head
Karsten Jeschkies 2 years ago committed by GitHub
parent a8a4ba742d
commit 17fdfcbaa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Makefile

@ -661,7 +661,8 @@ else
GO111MODULE=on GOPROXY=https://proxy.golang.org go mod tidy
GO111MODULE=on GOPROXY=https://proxy.golang.org go mod vendor
endif
@git diff --exit-code -- go.sum go.mod vendor/
@git diff --exit-code -- go.sum go.mod vendor/ || \
(echo "Run 'go mod download && go mod verify && go mod tidy && go mod vendor' and check in changes to vendor/ to fix failed check-mod."; exit 1)
lint-jsonnet:

Loading…
Cancel
Save