From 2ad3a414dbeded7c367d3d25bbf419bb95462215 Mon Sep 17 00:00:00 2001 From: MangoPig Date: Wed, 3 Dec 2025 02:57:12 +0000 Subject: [PATCH] Built Golang with certain version instead --- setup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index b89d955..fea6629 100755 --- a/setup.sh +++ b/setup.sh @@ -71,11 +71,11 @@ done # Extra packages for specific distros if [ "$OS" == "arch" ] || [ "$OS" == "manjaro" ]; then - FINAL_LIST="$FINAL_LIST eza go" + FINAL_LIST="$FINAL_LIST eza" fi if [ "$OS" == "ubuntu" ] || [ "$OS" == "debian" ]; then - FINAL_LIST="$FINAL_LIST ca-certificates bsdmainutils pkg-config cmake golang-go sysstat" + FINAL_LIST="$FINAL_LIST ca-certificates bsdmainutils pkg-config cmake" fi echo -e "${BLUE} LOG:${YELLOW} Installing: ${NC}$FINAL_LIST" @@ -133,6 +133,11 @@ if [ ! -d "$HOME/.nvm" ]; then fi # Go and GVM +wget https://go.dev/dl/go1.25.4.linux-amd64.tar.gz -O /tmp/go1.25.4.linux-amd64.tar.gz +sudo rm -rf /usr/local/go +sudo tar -C /usr/local -xzf /tmp/go1.25.4.linux-amd64.tar.gz +rm -f /tmp/go1.25.4.linux-amd64.tar.gz + if [ ! -d "$HOME/.gvm" ]; then bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) fi