Skip to content

Commit

Permalink
manage vendor folder with modules
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Oct 11, 2019
1 parent 98ca641 commit a7cbf0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -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`
Expand Down

0 comments on commit a7cbf0b

Please sign in to comment.