mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +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
|
.PHONY: local-check local-build local-test local
|
||||||
local-check: $(LINUXKIT_DEPS)
|
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 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 golint... && set -e ; for i in $(filter %.go,$(LINUXKIT_DEPS)); do golint $$i ; done
|
||||||
@echo ineffassign... && ineffassign $(filter %.go,$(LINUXKIT_DEPS))
|
@echo ineffassign... && ineffassign $(filter %.go,$(LINUXKIT_DEPS))
|
||||||
|
Loading…
Reference in New Issue
Block a user