diff --git a/build/root/Makefile b/build/root/Makefile index f463cd96f99..64fd4aa4fd5 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -327,27 +327,6 @@ clean: hack/make-rules/clean.sh endif -define VET_HELP_INFO -# Run 'go vet'. -# -# Args: -# WHAT: Directory names to vet. All *.go files under these -# directories will be vetted. If not specified, "everything" will be -# vetted. -# -# Example: -# make vet -# make vet WHAT=./pkg/kubelet -endef -.PHONY: vet -ifeq ($(PRINT_HELP),y) -vet: - echo "$$VET_HELP_INFO" -else -vet: - hack/make-rules/vet.sh $(WHAT) -endif - define LINT_HELP_INFO # Run golangci-lint # diff --git a/hack/make-rules/vet.sh b/hack/make-rules/vet.sh deleted file mode 100755 index b623b1fc525..00000000000 --- a/hack/make-rules/vet.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2016 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -o errexit -set -o nounset -set -o pipefail - -KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. - -# Ignore the usual golangci.yaml config because it would -# enable additional linters, then enable just "go vet". -"${KUBE_ROOT}/hack/verify-golangci-lint.sh" -c none -- --disable-all --enable=govet "$@"