Skip to content

Commit

Permalink
Do not fetch on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjohn committed Jun 12, 2023
1 parent 9d904a5 commit 8039a10
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ export GO111MODULE ?= on

all: format lint install

$(GOBIN)/goimports:
(cd /tmp; go get golang.org/x/tools/cmd/goimports@v0.0.0-20200103221440-774c71fcf114)

$(GOBIN)/golangci-lint:
(cd /tmp; go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.22.2)

.PHONY: deps
deps: $(GOBIN)/goimports $(GOBIN)/golangci-lint

Expand All @@ -29,12 +23,12 @@ check-git:
gen-check: format check-git

.PHONY: format
format: $(GOBIN)/goimports
format:
@go mod tidy
@goimports -l -w -local $(MODULE) .

.PHONY: lint
lint: $(GOBIN)/golangci-lint
lint:
@golangci-lint run --fix

.PHONY: install
Expand Down

0 comments on commit 8039a10

Please sign in to comment.