Built Golang with certain version instead
This commit is contained in:
parent
2040e01a08
commit
2ad3a414db
9
setup.sh
9
setup.sh
@ -71,11 +71,11 @@ done
|
|||||||
|
|
||||||
# Extra packages for specific distros
|
# Extra packages for specific distros
|
||||||
if [ "$OS" == "arch" ] || [ "$OS" == "manjaro" ]; then
|
if [ "$OS" == "arch" ] || [ "$OS" == "manjaro" ]; then
|
||||||
FINAL_LIST="$FINAL_LIST eza go"
|
FINAL_LIST="$FINAL_LIST eza"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$OS" == "ubuntu" ] || [ "$OS" == "debian" ]; then
|
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
|
fi
|
||||||
|
|
||||||
echo -e "${BLUE} LOG:${YELLOW} Installing: ${NC}$FINAL_LIST"
|
echo -e "${BLUE} LOG:${YELLOW} Installing: ${NC}$FINAL_LIST"
|
||||||
@ -133,6 +133,11 @@ if [ ! -d "$HOME/.nvm" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Go and GVM
|
# 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
|
if [ ! -d "$HOME/.gvm" ]; then
|
||||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user