feat(golang): remove use of goenv

It's simpler to just have a single version of Go available, with goenv
lots of different modules/packages which have `.go-version` files, the
LSP server doesn't work correctly unless the specific version of Go is
installed.
This commit is contained in:
2020-11-26 15:42:57 +00:00
parent 20116fcf14
commit 2a0ae3af05
2 changed files with 3 additions and 17 deletions

View File

@@ -2,20 +2,6 @@
# Go (golang) environment setup.
#
# ==============================================================================
# goenv
# ==============================================================================
# install goenv
zinit ice wait lucid as'program' pick'bin/goenv' from'gh' \
atclone'src/configure && make -C src; libexec/goenv init - > .zinitrc.zsh' \
atpull'%atclone' src'.zinitrc.zsh' nocompile'!'
zinit light syndbg/goenv
zinit ice wait lucid as'program' pick'plugins/go-build/bin/go-build' from'gh' \
id-as'syndbg/go-build'
zinit light syndbg/goenv
# ==============================================================================
# global golang packages
# ==============================================================================
@@ -42,7 +28,7 @@ install_go_global_packages() {
for package in "${packages[@]}"; do
echo "installing/updating \"$package\""
go get -u "$package"
GO111MODULE=on go get -u "$package"
done
if command-exists goenv && [ "$(goenv version-name)" != "system" ]; then