goenv
goenv copied to clipboard
goenv from Homebrew only has Go 1.12beta1
Description:
Platform: macOS 12.4, Intel Core Goenv: Version 1.23.3
Installed goenv from Homebrew, I think it must be pretty old or maybe I've messed something up, but I was unable to install the versions (1.14.5) that I was looking for.
Request:
It would be great if the README.md or some other documentation could be added or updated with a recommended installation procedure.
Logs:
Attaching console output here.
victor.roemer@victor % brew install goenv
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
You have 12 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
==> Downloading https://ghcr.io/v2/homebrew/core/goenv/manifests/1.23.3-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/goenv/blobs/sha256:18e8cdaeba562696634782aff8f2affff1201d91fab4334346942b11ece548a5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:18e8cdaeba562696634782aff8f2affff1201d91fab4334346942b11ece548a5?se=2022-07-22T22%3A2
######################################################################## 100.0%
==> Pouring goenv--1.23.3.all.bottle.1.tar.gz
🍺 /usr/local/Cellar/goenv/1.23.3: 158 files, 265.2KB
==> Running `brew cleanup goenv`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
victor.roemer@victor slimshady-release % goenv
goenv 1.23.3
And listing the available outputs
victor.roemer@victor % goenv install --list
Available versions:
1.2.2
1.3.0
1.3.1
1.3.2
1.3.3
1.4.0
1.4.1
1.4.2
1.4.3
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.7.0
1.7.1
1.7.3
1.7.4
1.7.5
1.8.0
1.8.1
1.8.3
1.8.4
1.8.5
1.8.7
1.9.0
1.9.1
1.9.2
1.9.3
1.9.4
1.9.5
1.9.6
1.9.7
1.10.0
1.10beta2
1.10rc1
1.10rc2
1.10.1
1.10.2
1.10.3
1.10.4
1.10.5
1.10.6
1.10.7
1.11.0
1.11beta2
1.11beta3
1.11rc1
1.11rc2
1.11.1
1.11.2
1.11.3
1.11.4
1.12beta1
the same question, how to update
you should update the goven version~ try
cd ~/.goenv
git pull origin master
then try again
goenv install --list
you will see the lastest version.
this fix my issue.
for me, this cd ~/.goenv
is not a git dir
$ ls -la1
.
..
shims
versions
btw: very similar to #123
Same issue.
I think it's because of goenv version on homebrew is only 1.23.3, not 2.x
$ brew update && brew upgrade goenv
Already up-to-date.
Warning: goenv 1.23.3 already installed
@syndbg How about update homebrew bottle/formula? https://formulae.brew.sh/formula/goenv#default
I uninstalled goenv from homebrew, and reinstall from GitHub as INSTALL.md (Basic Installation)
$ brew uninstall goenv
Uninstalling /opt/homebrew/Cellar/goenv/1.23.3... (158 files, 265.2KB)
$ rm -rf ~/.goenv
$ git clone https://github.com/syndbg/goenv.git ~/.goenv
Alias tip: g clone https://github.com/syndbg/goenv.git ~/.goenv
Cloning into '/Users/MYUSERNAME/.goenv'...
remote: Enumerating objects: 14748, done.
remote: Counting objects: 100% (502/502), done.
remote: Compressing objects: 100% (148/148), done.
remote: Total 14748 (delta 397), reused 367 (delta 346), pack-reused 14246
Receiving objects: 100% (14748/14748), 2.68 MiB | 14.89 MiB/s, done.
Resolving deltas: 100% (9947/9947), done.
And it works well as follows:
$ goenv --version
goenv 2.0.0beta11
$ goenv install --list
Available versions:
1.2.2
1.3.0
1.3.1
1.3.2
1.3.3
1.4.0
1.4.1
1.4.2
1.4.3
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.7.0
1.7.1
1.7.3
1.7.4
1.7.5
1.8.0
1.8.1
1.8.3
1.8.4
1.8.5
1.8.7
1.9.0
1.9.1
1.9.2
1.9.3
1.9.4
1.9.5
1.9.6
1.9.7
1.10.0
1.10beta2
1.10rc1
1.10rc2
1.10.1
1.10.2
1.10.3
1.10.4
1.10.5
1.10.6
1.10.7
1.10.8
1.11.0
1.11beta2
1.11beta3
1.11rc1
1.11rc2
1.11.1
1.11.2
1.11.3
1.11.4
1.11.5
1.11.6
1.11.7
1.11.8
1.11.9
1.11.10
1.11.11
1.11.12
1.11.13
1.12.0
1.12beta1
1.12beta2
1.12rc1
1.12.1
1.12.2
1.12.3
1.12.4
1.12.5
1.12.6
1.12.7
1.12.8
1.12.9
1.12.10
1.12.11
1.12.12
1.12.13
1.12.14
1.12.15
1.12.16
1.12.17
1.13.0
1.13beta1
1.13rc1
1.13rc2
1.13.1
1.13.2
1.13.3
1.13.4
1.13.5
1.13.6
1.13.7
1.13.8
1.13.9
1.13.10
1.13.11
1.13.12
1.13.13
1.13.14
1.13.15
1.14.0
1.14beta1
1.14rc1
1.14.1
1.14.2
1.14.3
1.14.4
1.14.5
1.14.6
1.14.7
1.14.8
1.14.9
1.14.10
1.14.11
1.14.12
1.14.13
1.14.14
1.14.15
1.15.0
1.15beta1
1.15rc2
1.15.1
1.15.2
1.15.3
1.15.4
1.15.5
1.15.6
1.15.7
1.15.8
1.15.9
1.15.10
1.15.11
1.15.12
1.15.13
1.15.14
1.15.15
1.16.0
1.16beta1
1.16.1
1.16.2
1.16.3
1.16.4
1.16.5
1.16.6
1.16.7
1.16.8
1.16.9
1.16.10
1.16.11
1.16.12
1.16.13
1.16.14
1.16.15
1.17.0
1.17beta1
1.17rc1
1.17rc2
1.17.1
1.17.2
1.17.3
1.17.4
1.17.5
1.17.6
1.17.7
1.17.8
1.17.9
1.17.10
1.17.11
1.17.12
1.18.0
1.18beta1
1.18beta2
1.18rc1
1.18.1
1.18.2
1.18.3
1.18.4
1.19beta1
Maybe updating homebrew bottle/formula is the best solution.
The formula definitely needs to be updated to reflect 2.x. I may take a whack at getting a PR going if I have time this week, but in the meantime running brew install goenv --HEAD
should do the trick
For reference for anyone who stumbles here, this issue duplicates #156 , which also duplicates the pinned issue #80
The formula definitely needs to be updated to reflect 2.x.
Per the above issues, this is not possible as a stable 2.x
has not yet landed and homebrew-core
requires stable tags. It seems that the author of goenv
did not create the core
formula either (which is normally a requirement of core
as well).
A third-party tap could be created for this in the meantime, however, as those are not restricted to core
conventions (being third-party after all).
Thanks for the detailed explaination!
I'll look forward to be stable soon and reflected to homebrew-core
. :)
I'll look forward to be stable soon and reflected to
homebrew-core
. :)
Unfortunately it's been a few years since a stable release per #80 etc, so I'm not sure if that will happen any time soon 😕
The best option for now seems to be brew install goenv --HEAD
and uninstalling + reinstalling when needing new Go versions. (Or just installing from GitHub etc)
Honestly thinking of creating my own tap to just hold random formulae like this 😅 (though one hosted by the author is probably optimal)
version 2.0.1 released just now; 2.0.0 is the latest version in brew. Hope this helps!