mirror of https://github.com/kubernetes/kops.git
Run "go mod vendor" in verify-gomod
This will actually catch vendoring issues
This commit is contained in:
parent
121c0aaa31
commit
a1111002a3
7
Makefile
7
Makefile
|
@ -459,11 +459,6 @@ dns-controller-push:
|
|||
gomod-prereqs:
|
||||
(which bazel > /dev/null) || (echo "gomod requires that bazel is installed"; exit 1)
|
||||
|
||||
.PHONY: dep-ensure
|
||||
dep-ensure:
|
||||
echo "'make dep-ensure' has been replaced by 'make gomod'"
|
||||
exit 1
|
||||
|
||||
.PHONY: gomod
|
||||
gomod: gomod-prereqs
|
||||
GO111MODULE=on go mod vendor
|
||||
|
@ -509,7 +504,7 @@ verify-gofmt:
|
|||
|
||||
.PHONY: verify-gomod
|
||||
verify-gomod:
|
||||
hack/verify-gomod
|
||||
hack/verify-gomod.sh
|
||||
|
||||
.PHONY: verify-packages
|
||||
verify-packages: ${BINDATA_TARGETS}
|
||||
|
|
|
@ -22,6 +22,8 @@ set -o pipefail
|
|||
|
||||
cd "${KOPS_ROOT}"
|
||||
|
||||
make gomod
|
||||
|
||||
changes=$(git status --porcelain || true)
|
||||
if [ -n "${changes}" ]; then
|
||||
echo "ERROR: go modules are not up to date; please run: go mod tidy"
|
Loading…
Reference in New Issue