summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 71c5ee0..406cfc2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
TEST_ARGS ?= --count=1
-default: test
+default: goimports test
+goimports:
+ goimports -w *.go
generate: static-build/install/lib/libgit2.a
go generate --tags "static" ./...
@@ -10,6 +12,7 @@ generate: static-build/install/lib/libgit2.a
# ==============
# This uses whatever version of libgit2 can be found in the system.
test:
+ go-mod-clean # go install go.wit.com/apps/go-mod-clean@latest
go run script/check-MakeGitError-thread-lock.go
go test $(TEST_ARGS) ./...