From b53291bb0ea783699f992e92db6373a4ad38a252 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 9 Apr 2021 21:49:48 +0800 Subject: [PATCH] Fix drone --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f0ddb6c..a2ab275e 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ GOFMT ?= gofmt -s TAGS ?= SED_INPLACE := sed -i -GOFILES := $(shell find . -name "*.go" -type f) +GO_DIRS := caches contexts integrations convert core dialects internal log migrate names schemas tags +GOFILES := $(wildcard *.go) +GOFILES += $(shell find $(GO_DIRS) -name "*.go" -type f) INTEGRATION_PACKAGES := xorm.io/xorm/integrations PACKAGES ?= $(filter-out $(INTEGRATION_PACKAGES),$(shell $(GO) list ./...)) @@ -70,6 +72,7 @@ fmt: .PHONY: fmt-check fmt-check: # get all go files and run go fmt on them + echo $(GOFILES) @diff=$$($(GOFMT) -d $(GOFILES)); \ if [ -n "$$diff" ]; then \ echo "Please run 'make fmt' and commit the result:"; \