Skip to content

Commit ce305ab

Browse files
committed
Fix make lint
1 parent a259f2b commit ce305ab

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ jobs:
3030
- uses: actions/checkout@v2
3131

3232
- name: Run golint
33-
run: make lint
33+
run: |
34+
export PATH=$PATH:$(go env GOPATH)/bin
35+
make lint
3436

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ build:
77
go build
88

99
.PHONY: lint
10-
lint:
11-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.39.0
12-
./bin/golangci-lint run --verbose --enable gofmt
10+
lint:
11+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.39.0
12+
golangci-lint run --verbose --enable gofmt

0 commit comments

Comments
 (0)