mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 06:06:32 +00:00
Install golang from golang.org
This commit is contained in:
parent
d4922295e4
commit
07d40cc911
@ -23,6 +23,7 @@ fi
|
|||||||
|
|
||||||
if [[ "$DET_OS" == "linux" ]]; then
|
if [[ "$DET_OS" == "linux" ]]; then
|
||||||
ANDROID_SDK=$HOME/workspace/adt-bundle-linux/sdk
|
ANDROID_SDK=$HOME/workspace/adt-bundle-linux/sdk
|
||||||
|
GOROOT=/usr/local/go
|
||||||
elif [[ "$DET_OS" == "mac" ]]; then
|
elif [[ "$DET_OS" == "mac" ]]; then
|
||||||
ANDROID_SDK=$HOME/workspace/android-sdk-macosx
|
ANDROID_SDK=$HOME/workspace/android-sdk-macosx
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ _maybe_set -p PATH "$HOME/.cargo/bin"
|
|||||||
# Golang paths
|
# Golang paths
|
||||||
set -gx GOPATH $HOME/workspace/go_path
|
set -gx GOPATH $HOME/workspace/go_path
|
||||||
_maybe_set -p PATH "$GOPATH/bin"
|
_maybe_set -p PATH "$GOPATH/bin"
|
||||||
|
_maybe_set -p PATH "/usr/local/go/bin"
|
||||||
|
|
||||||
# Android paths
|
# Android paths
|
||||||
if [ $det_os = "linux" ]
|
if [ $det_os = "linux" ]
|
||||||
|
@ -66,6 +66,7 @@ if [ "$(uname)" == 'Darwin' ]; then
|
|||||||
fi
|
fi
|
||||||
recipe 'git'
|
recipe 'git'
|
||||||
recipe 'vim-settings'
|
recipe 'vim-settings'
|
||||||
|
recipe 'golang'
|
||||||
recipe 'fish'
|
recipe 'fish'
|
||||||
if $install_ui_terms ; then
|
if $install_ui_terms ; then
|
||||||
recipe 'alacritty'
|
recipe 'alacritty'
|
||||||
|
@ -2,12 +2,11 @@
|
|||||||
|
|
||||||
# Installs golang from the web
|
# Installs golang from the web
|
||||||
|
|
||||||
version="1.13.3"
|
version="1.16.6"
|
||||||
if [[ "$UNAME_STR" == "Darwin" ]]; then
|
if [[ "$UNAME_STR" == "Darwin" ]]; then
|
||||||
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.darwin-amd64-osx10.8.pkg"
|
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.darwin-amd64-osx10.8.pkg"
|
||||||
installer -pkg "$TMP_DIR/go${version}.darwin-amd64-osx10.8.pkg"
|
installer -pkg "$TMP_DIR/go${version}.darwin-amd64-osx10.8.pkg"
|
||||||
elif [[ "$UNAME_STR" == "Linux" ]]; then
|
elif [[ "$UNAME_STR" == "Linux" ]]; then
|
||||||
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.linux-amd64.tar.gz"
|
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.linux-amd64.tar.gz"
|
||||||
# Do something
|
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf "$TMP_DIR/go${version}.linux-amd64.tar.gz"
|
||||||
echo "**** Install from $TMP_DIR/go${version}.linux-amd64.tar.gz"
|
|
||||||
fi
|
fi
|
||||||
|
@ -19,7 +19,7 @@ packages="$packages neovim vim mercurial universal-ctags tig doxygen shellcheck"
|
|||||||
case "$PACKAGE_MANAGER" in
|
case "$PACKAGE_MANAGER" in
|
||||||
"port")
|
"port")
|
||||||
# Non-standard packages
|
# Non-standard packages
|
||||||
packages="$packages md5sha1sum gradle go apache-ant"
|
packages="$packages md5sha1sum gradle apache-ant"
|
||||||
# Python packages
|
# Python packages
|
||||||
packages="$packages python27 py27-ipython py27-pip py27-six py27-tox py27-flake8 py27-virtualenv"
|
packages="$packages python27 py27-ipython py27-pip py27-six py27-tox py27-flake8 py27-virtualenv"
|
||||||
packages="$packages python39 py39-ipython py39-pip py39-six py39-tox py39-flake8 py39-virtualenv py39-black"
|
packages="$packages python39 py39-ipython py39-pip py39-six py39-tox py39-flake8 py39-virtualenv py39-black"
|
||||||
@ -52,7 +52,7 @@ case "$PACKAGE_MANAGER" in
|
|||||||
sudo port select --set virtualenv virtualenv39
|
sudo port select --set virtualenv virtualenv39
|
||||||
;;
|
;;
|
||||||
"apt-get")
|
"apt-get")
|
||||||
packages="$packages build-essential golang-go"
|
packages="$packages build-essential"
|
||||||
# Neovim python plugins
|
# Neovim python plugins
|
||||||
packages="$packages python3-neovim"
|
packages="$packages python3-neovim"
|
||||||
# Python packages
|
# Python packages
|
||||||
|
Loading…
Reference in New Issue
Block a user