feat: adjust the install go-gitlint role

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
pull/455/head
Xinwei Xiong(cubxxw) 2 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 4d78ab0de3
commit ed71f4fb9a

@ -18,7 +18,7 @@
# #
# sealer build use BUILD_TOOLS # 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 # Code analysis tools
ANALYSIS_TOOLS = golangci-lint goimports golines go-callvis kube-score ANALYSIS_TOOLS = golangci-lint goimports golines go-callvis kube-score
# Code generation tools # Code generation tools
@ -90,6 +90,11 @@ install.conversion-gen:
install.ginkgo: install.ginkgo:
@$(GO) install github.com/onsi/ginkgo/ginkgo@v1.16.2 @$(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 ## install.go-junit-report: Install go-junit-report, used to convert go test output to junit xml
.PHONY: install.go-junit-report .PHONY: install.go-junit-report
install.go-junit-report: install.go-junit-report:
@ -109,11 +114,6 @@ install.kube-score:
install.kubeconform: install.kubeconform:
@$(GO) install github.com/yannh/kubeconform/cmd/kubeconform@latest @$(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 ## install.gsemver: Install gsemver, used to generate semver
.PHONY: install.gsemver .PHONY: install.gsemver
install.gsemver: install.gsemver:

Loading…
Cancel
Save