From 3a3e60ad4b16ddee8ef588268a20ec40aaba652b Mon Sep 17 00:00:00 2001 From: Sean Goggins Date: Sun, 11 Sep 2022 12:25:43 -0500 Subject: [PATCH] scorecard install adaptation for evolving go versions --- scripts/install/workers.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install/workers.sh b/scripts/install/workers.sh index e73325ffee..5855ea7271 100755 --- a/scripts/install/workers.sh +++ b/scripts/install/workers.sh @@ -43,7 +43,7 @@ do done -if [ -f "/usr/local/bin/go" ]; then +if [ -f "/usr/local/bin/go" ] || [ -f "/usr/bin/go" ] || [ -f "/snap/bin/go" ]; then echo "found go!" else echo "Installing go!" @@ -58,7 +58,8 @@ if [ -d "$HOME/scorecard" ]; then echo " Updating Scorecard ... " CURRENT_DIR=$PWD; cd $HOME/scorecard; - git pull; + git pull; + go mod tidy; go build; echo "Scorecard build done." cd $CURRENT_DIR