Add versioning pinning checker and instructions

This ensures that the version pinning is setup correctly, so all the deps
are pointing at the right underlying versions.
This commit is contained in:
Sargun Dhillon
2020-06-04 14:24:31 -07:00
parent b3213d6eb2
commit bef6eda40d
4 changed files with 71 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ release: build goreleaser
##### =====> Utility targets <===== #####
.PHONY: clean test list cover format docker
.PHONY: clean test list cover format docker check_version
mod:
@echo "Prune Dependencies..."
$Q go mod tidy
@@ -119,7 +119,9 @@ format: goimports
$Q find . -iname \*.go | grep -v \
-e "^$$" $(addprefix -e ,$(IGNORED_PACKAGES)) | xargs $(gobin_tool) -run $(goimports) -w
check_version: mod
@echo "Checking kubernetes dependency version pinning"
./scripts/validate/check_version.sh
##### =====> Internals <===== #####