blob: b18d2d2bb11992cadd207a3f5a9054836c1a7218 [file] [log] [blame]
Girish Kumar2ed051b2020-07-28 16:35:25 +00001SHELL=/bin/bash
2
3GOFILES_NOVENDOR = $(shell go list ./... | grep -v /vendor/)
4
5all: vet fmt test
6
7fmt:
8 go fmt $(GOFILES_NOVENDOR)
9
10vet:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011 # do not check lostcancel, they are intentional.
12 go vet -lostcancel=false $(GOFILES_NOVENDOR)
Girish Kumar2ed051b2020-07-28 16:35:25 +000013
14test: vet
15 ./scripts/test_all.sh
16
17.PHONY: all test