From 301c006155a946cc950d2184b30d245cd6c70e71 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 07:12:25 +0000 Subject: [PATCH] feat: Updated scripts/githooks/commit-msg --- scripts/githooks/commit-msg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index bc76a56..59a0416 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -53,8 +53,11 @@ 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 + go get github.com/jorisroovers/gitlint + if ! command -v $GITLINT_DIR &>/dev/null; then if [ $? -ne 0 ]; then + printError "Failed to install $GITLINT_DIR. Please check the installation and try again." + exit 1 printError "Failed to install $GITLINT_DIR. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it manually." exit 1 fi