diff --git a/setup.sh b/setup.sh index 1de571e..4349ef7 100755 --- a/setup.sh +++ b/setup.sh @@ -236,10 +236,22 @@ unalias cd 2>/dev/null || true [[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm" if command -v gvm &> /dev/null; then - TARGET_GO="go1.24.11" - if [[ $(gvm list) != *"$TARGET_GO"* ]]; then + TARGET_GO="go1.24.0" + + echo -e "${BLUE} LOG:${YELLOW} Configuring Go ($TARGET_GO)...${NC}" + + if [[ $(gvm list) != *"$TARGET_GO"* ]]; then + echo -e "${BLUE} LOG:${YELLOW} Downloading Binary for $TARGET_GO...${NC}" + gvm install $TARGET_GO -B || { + echo -e "${RED} LOG: Binary not found. Bootstrapping with go1.22.9...${NC}" + gvm install go1.22.9 -B + gvm use go1.22.9 + gvm install $TARGET_GO + } - gvm install $TARGET_GO + gvm use $TARGET_GO --default + else + echo -e "${GREEN} LOG: $TARGET_GO is already installed.${NC}" gvm use $TARGET_GO --default fi fi @@ -254,4 +266,4 @@ if command -v rustup &> /dev/null; then fi # Finish -echo -e "${GREEN} LOG: Setup Complete! Please restart your terminal to apply all changes.${NC}" \ No newline at end of file +echo -e "${GREEN} LOG: Setup Complete! Please restart your terminal to apply all changes. ${NC} " \ No newline at end of file