Skip to content

Commit

Permalink
Merge pull request #8182 from rifelpet/fix-verify-staticcheck
Browse files Browse the repository at this point in the history
Fix verify-staticcheck prow job
  • Loading branch information
k8s-ci-robot committed Dec 23, 2019
2 parents ebd7a29 + e7e9e62 commit 4fedf81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ verify-bazel:
hack/verify-bazel.sh

.PHONY: verify-staticcheck
verify-staticcheck:
verify-staticcheck: ${BINDATA_TARGETS}
hack/verify-staticcheck.sh

# ci target is for developers, it aims to cover all the CI jobs
Expand Down
2 changes: 0 additions & 2 deletions hack/.staticcheck_failures
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
cloudmock/aws/mockelbv2
cmd/kops
dnsprovider/pkg/dnsprovider
dnsprovider/pkg/dnsprovider/providers/aws/route53
dnsprovider/pkg/dnsprovider/providers/coredns
dnsprovider/pkg/dnsprovider/providers/google/clouddns
dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal
dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal/stubs
dnsprovider/pkg/dnsprovider/providers/openstack/designate
node-authorizer/pkg/authorizers/aws
node-authorizer/pkg/server
pkg/instancegroups
Expand Down
2 changes: 2 additions & 0 deletions hack/verify-staticcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ go install k8s.io/kops/vendor/honnef.co/go/tools/cmd/staticcheck

cd "${KUBE_ROOT}"

make upup/models/bindata.go

# Check that the file is in alphabetical order
failure_file="${KUBE_ROOT}/hack/.staticcheck_failures"
if ! diff -u "${failure_file}" <(LC_ALL=C sort "${failure_file}"); then
Expand Down

0 comments on commit 4fedf81

Please sign in to comment.