Skip to content

Commit

Permalink
Merge pull request #2280 from yujunz/golangci-lint
Browse files Browse the repository at this point in the history
Exlude golangci-lint v1.24.0 which breaks CI
  • Loading branch information
k8s-ci-robot authored Mar 17, 2020
2 parents 5b774d0 + cad69ae commit 036b93c
Show file tree
Hide file tree
Showing 4 changed files with 362 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
7 changes: 7 additions & 0 deletions hack/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module sigs.k8s.io/kustomize/hack

go 1.14

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

exclude github.com/golangci/golangci-lint v1.24.0
Loading

0 comments on commit 036b93c

Please sign in to comment.