[v3.2.3-rhel] fix build

install.tools target broke a few weeks ago because it was fetching
something @latest.

We can't use 'go install' nor 'got get ...@version' on this branch,
so just delete the .gitvalidation steps entirely.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago
2022-09-19 11:09:11 -06:00
parent 3577002344
commit 3d4b10dc7f

View File

@ -211,11 +211,6 @@ ifeq ("$(wildcard $(GOPKGDIR))","")
endif
touch $@
.PHONY: .gitvalidation
.gitvalidation: .gopathok
@echo "Validating vs commit '$(call err_if_empty,EPOCH_TEST_COMMIT)'"
GIT_CHECK_EXCLUDE="./vendor:docs/make.bat" $(GOBIN)/git-validation -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD)
.PHONY: lint
lint: golangci-lint
@echo "Linting vs commit '$(call err_if_empty,EPOCH_TEST_COMMIT)'"
@ -261,7 +256,7 @@ codespell:
codespell -S bin,vendor,.git,go.sum,changelog.txt,.cirrus.yml,"RELEASE_NOTES.md,*.xz,*.gz,*.tar,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go" -L uint,iff,od,seeked,splitted,marge,ERRO,hist,ether -w
.PHONY: validate
validate: gofmt lint .gitvalidation validate.completions man-page-check swagger-check tests-included
validate: gofmt lint validate.completions man-page-check swagger-check tests-included
.PHONY: build-all-new-commits
build-all-new-commits:
@ -753,7 +748,7 @@ install.systemd:
endif
.PHONY: install.tools
install.tools: .install.goimports .install.gitvalidation .install.md2man .install.ginkgo .install.golangci-lint .install.bats ## Install needed tools
install.tools: .install.goimports .install.md2man .install.ginkgo .install.golangci-lint .install.bats ## Install needed tools
.install.goimports: .gopathok
if [ ! -x "$(GOBIN)/goimports" ]; then \
@ -767,12 +762,6 @@ install.tools: .install.goimports .install.gitvalidation .install.md2man .instal
$(GO) install $(BUILDFLAGS) ./vendor/github.com/onsi/ginkgo/ginkgo ; \
fi
.PHONY: .install.gitvalidation
.install.gitvalidation: .gopathok
if [ ! -x "$(GOBIN)/git-validation" ]; then \
$(call go-get,github.com/vbatts/git-validation); \
fi
.PHONY: .install.golangci-lint
.install.golangci-lint: .gopathok
VERSION=1.36.0 GOBIN=$(GOBIN) sh ./hack/install_golangci.sh