From 05c1bf538e54ea056c36c9675adef9dcfee591d9 Mon Sep 17 00:00:00 2001 From: kubbot <3293172751ysy@gmail.com> Date: Fri, 22 Mar 2024 06:05:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20file(s)=20with=20kubecu?= =?UTF-8?q?b/go-project-layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 kubbot to synchronize the warehouse --- scripts/githooks/commit-msg | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index bc76a56..e91555c 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -51,15 +51,6 @@ test "" = "$(grep '^Signed-off-by: ' "$1" | # TODO: go-gitlint dir set GITLINT_DIR="./_output/tools/go-gitlint" -if ! command -v $GITLINT_DIR &>/dev/null; then - echo "$GITLINT_DIR not found. Attempting to install it..." - # Add the commands to download and install the go-gitlint tool here - if [ $? -ne 0 ]; then - printError "Failed to install $GITLINT_DIR. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it manually." - exit 1 - fi -fi - $GITLINT_DIR \ --msg-file=$1 \ --subject-regex="^(build|chore|ci|docs|feat|feature|fix|perf|refactor|revert|style|test)(.*)?:\s?.*" \ @@ -71,9 +62,7 @@ $GITLINT_DIR \ if [ $? -ne 0 ] then if ! command -v $GITLINT_DIR &>/dev/null; then - printError "$GITLINT_DIR not found. Installing the go-gitlint tool..." - make tools - printError "Please make sure the installation was successful and re-run the commit-msg hook." + printError "$GITLINT_DIR not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it." fi printError "Please fix your commit message to match kubecub coding standards" printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md"