From a7cbf0bd8baac1132b93bd167d0fb0680e84c179 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Fri, 11 Oct 2019 20:48:00 +0200 Subject: [PATCH] manage vendor folder with modules --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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`