diff --git a/Makefile b/Makefile index d2798e7ae..b3b1954a3 100644 --- a/Makefile +++ b/Makefile @@ -43,13 +43,17 @@ help: @echo "clean - remove temp files" # build compiles fabio and the test dependencies -build: gofmt +build: gofmt mod go build -mod=vendor # test runs the tests test: build go test -mod=vendor -v -test.timeout 15s ./... +mod: + go mod tidy + go mod vendor + # gofmt runs gofmt on the code gofmt: gofmt -s -w `find . -type f -name '*.go' | grep -v vendor`