Skip to content

Commit

Permalink
Pin golangci-lint version to v1.23.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunz committed Mar 16, 2020
1 parent 5b774d0 commit c93c835
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ verify-kustomize-e2e: test-examples-e2e-kustomize
# since everything uses the same implicit GOPATH.
# This installs in a temp dir to avoid overwriting someone else's
# linter, then installs in MYGOBIN with a new name.
# Version pinned by api/go.mod
# Version pinned by hack/go.mod
$(MYGOBIN)/golangci-lint-kustomize:
( \
set -e; \
export GOBIN=$$(mktemp -d) \
cd api; \
export GOBIN=$$(mktemp -d); \
cd hack; \
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint; \
mv $$GOBIN/golangci-lint $(MYGOBIN)/golangci-lint-kustomize \
)
Expand Down
5 changes: 5 additions & 0 deletions hack/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module sigs.k8s.io/kustomize/hack

go 1.14

require github.com/golangci/golangci-lint v1.23.8
Loading

0 comments on commit c93c835

Please sign in to comment.