Skip to content

Commit

Permalink
Avoid loading resources from the network on make format (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkohen authored Oct 29, 2019
1 parent e9a90d8 commit 1266a83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ cover:

format:
@echo ">> formatting code"
GO111MODULE=$(GO111MODULE) $(GO) fmt $(pkgs)
# Replace gofmt call once we bump to a more recent Go that supports `-mod=vendor`, probably 1.14.
# GO111MODULE=$(GO111MODULE) $(GO) fmt $(GOOPTS) $(pkgs)
# Avoid formatting anything under vendor/.
$(GOFMT) -l -w $(shell find . -path ./vendor -prune -o -name '*.go' -print)

vet:
@echo ">> vetting code"
Expand Down

0 comments on commit 1266a83

Please sign in to comment.