github.com/kunlun-qilian/sqlx/v3@v3.0.0/Makefile (about) 1 GO = go 2 PKG = $(shell cat go.mod | grep "^module " | sed -e "s/module //g") 3 VERSION = v$(shell cat .version) 4 5 fmt: install.goimports 6 goimports -l -w . 7 8 test: tidy 9 $(GO) test -v -race ./... 10 11 cover: tidy 12 $(GO) test -v -race -coverprofile=coverage.txt -covermode=atomic ./... 13 14 tidy: fmt 15 go mod tidy 16 17 install.goimports: 18 go install golang.org/x/tools/cmd/goimports 19 20 install.go-mod-outdated: 21 go install github.com/psampaz/go-mod-outdated@v0.8.0