mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
local-check: fail build if gofmt detects differences
It seems to exit code 0 in all cases. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
4de1b1444a
commit
4ce0e91035
2
Makefile
2
Makefile
@ -74,7 +74,7 @@ test-cross:
|
||||
|
||||
.PHONY: local-check local-build local-test local
|
||||
local-check: $(LINUXKIT_DEPS)
|
||||
@echo gofmt... && gofmt -s -l $(filter %.go,$(LINUXKIT_DEPS))
|
||||
@echo gofmt... && o=$$(gofmt -s -l $(filter %.go,$(LINUXKIT_DEPS))) && if [ -n "$$o" ] ; then echo $$o ; exit 1 ; fi
|
||||
@echo govet... && go tool vet -printf=false $(filter %.go,$(LINUXKIT_DEPS))
|
||||
@echo golint... && set -e ; for i in $(filter %.go,$(LINUXKIT_DEPS)); do golint $$i ; done
|
||||
@echo ineffassign... && ineffassign $(filter %.go,$(LINUXKIT_DEPS))
|
||||
|
Loading…
Reference in New Issue
Block a user