From ed71f4fb9a3c449c1eeee149cccff7d441714655 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Sat, 13 May 2023 17:52:32 +0800 Subject: [PATCH] feat: adjust the install go-gitlint role Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- script/make-rules/tools.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script/make-rules/tools.mk b/script/make-rules/tools.mk index f5036a980..7bed9c178 100644 --- a/script/make-rules/tools.mk +++ b/script/make-rules/tools.mk @@ -18,7 +18,7 @@ # # sealer build use BUILD_TOOLS -BUILD_TOOLS ?= golangci-lint goimports addlicense deepcopy-gen conversion-gen ginkgo go-junit-report +BUILD_TOOLS ?= golangci-lint goimports addlicense deepcopy-gen conversion-gen ginkgo go-junit-report go-gitlint # Code analysis tools ANALYSIS_TOOLS = golangci-lint goimports golines go-callvis kube-score # Code generation tools @@ -90,6 +90,11 @@ install.conversion-gen: install.ginkgo: @$(GO) install github.com/onsi/ginkgo/ginkgo@v1.16.2 +## Install go-gitlint: Install go-gitlint, used to check git commit message +.PHONY: install.go-gitlint +install.go-gitlint: + @$(GO) install github.com/marmotedu/go-gitlint/cmd/go-gitlint@latest + ## install.go-junit-report: Install go-junit-report, used to convert go test output to junit xml .PHONY: install.go-junit-report install.go-junit-report: @@ -109,11 +114,6 @@ install.kube-score: install.kubeconform: @$(GO) install github.com/yannh/kubeconform/cmd/kubeconform@latest -## Install go-gitlint: Install go-gitlint, used to check git commit message -.PHONY: install.go-gitlint -install.go-gitlint: - @$(GO) install github.com/marmotedu/go-gitlint/cmd/go-gitlint@latest - ## install.gsemver: Install gsemver, used to generate semver .PHONY: install.gsemver install.gsemver: