Skip to content

Commit

Permalink
rm dep ensure command cause of slowness
Browse files Browse the repository at this point in the history
avoid applying `gofmt` to vendor files
  • Loading branch information
hagen1778 authored and valyala committed Jun 13, 2018
1 parent ccb8666 commit 5499a3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
@@ -1,4 +1,6 @@
pkgs = $(shell go list ./...)
gofiles := $(shell find . -name "*.go" -type f -not -path "./vendor/*")


BUILD_TAG = $(shell git tag --points-at HEAD)

Expand All @@ -13,9 +15,8 @@ update:
dep ensure -update

format:
dep ensure
go fmt $(pkgs)
gofmt -w -s .
gofmt -w -s $(gofiles)

build:
go build
Expand Down

0 comments on commit 5499a3d

Please sign in to comment.