goenv icon indicating copy to clipboard operation
goenv copied to clipboard

go-build: definition not found: 1.13.6 , when trying to install goenv install 1.13.6

Open amanpatel6991 opened this issue 5 years ago • 8 comments

goenv install --list shows 1.12beta1 as the last go version available to install in goenv

How do i install go version >= 1.13.x in goenv ?

amanpatel6991 avatar May 13 '20 06:05 amanpatel6991

+1

carlows avatar May 18 '20 23:05 carlows

+1

georgettica avatar May 21 '20 12:05 georgettica

There are workarounds for this here if you used homebrew: https://github.com/syndbg/goenv/issues/80

brew install jq
if [ -n "$(brew info --json goenv | jq -r '.[0].installed[] | select(.version | test("^HEAD-") | not)')" ]; then
  brew uninstall goenv
fi
brew install --HEAD goenv 

carlows avatar May 21 '20 16:05 carlows

Out of curiosity, why is this repository no longer maintaining tagged releases? While the above work around is not difficult, it is not generally how homebrew users upgrade thier packages.

If homebrew is not longer intended to be a supported delivery mechanism that is fine too but providing instructions on how to install using homebrew and not supporting any version of Go that has not stopped receiving security updates is a bit of a problem.

joshua-rutherford avatar Aug 26 '20 17:08 joshua-rutherford

Agreed, I guess there is no maintainer for that updates homebrew tap. Anyways, is there a fix in goenv?

georgettica avatar Oct 21 '20 19:10 georgettica

For upgrading I've done

brew upgrade --fetch-HEAD goenv

yads avatar Dec 03 '20 16:12 yads

To hammer it home again, in case anyone runs into it...you need to do the --fetch-HEAD if you had already previously done the brew install --HEAD goenv, otherwise brew will use a local copy...thanks @yads

brightredchilli avatar Mar 04 '21 03:03 brightredchilli

I ran into this today. It was very unexpected that this would be a problem.

Can someone ether fix this or change the readme page, to make it super clear that the installation is not default?

aconstanti avatar Jun 30 '21 03:06 aconstanti