Skip to content

Commit 391715f

Browse files
committed
Remove golangci-lint as dependecy, use docker
1 parent 3f4baa6 commit 391715f

File tree

4 files changed

+1
-658
lines changed

4 files changed

+1
-658
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ nginx-prometheus-exporter:
1616

1717
.PHONY: lint
1818
lint:
19-
go run github.com/golangci/golangci-lint/cmd/golangci-lint run
19+
docker run --pull always --rm -v $(shell pwd):/nginx-prometheus-exporter -w /nginx-prometheus-exporter -v $(shell go env GOCACHE):/cache/go -e GOCACHE=/cache/go -e GOLANGCI_LINT_CACHE=/cache/go -v $(shell go env GOPATH)/pkg:/go/pkg golangci/golangci-lint:latest golangci-lint --color always run
2020

2121
.PHONY: test
2222
test:

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/nginxinc/nginx-prometheus-exporter
33
go 1.16
44

55
require (
6-
github.com/golangci/golangci-lint v1.40.1
76
github.com/nginxinc/nginx-plus-go-client v0.8.0
87
github.com/prometheus/client_golang v1.11.0
98
github.com/prometheus/common v0.29.0

0 commit comments

Comments
 (0)