Comments (7)
The same issue is happening with me in Macbook Air M1. A workaround for this would be to run it like this:
arch -arch x86_64 goenv install 1.15.7
This way you do not need to open your terminal in rosetta mode. You can also alias some of these commands that are still having issues in Apple Sillicon.
alias goenv="arch -arch x86_64 goenv"
Or maybe even create some shallow wrapper functions:
function _goenv() {
arch -arch x86_64 goenv $*
}
This way you can run them like this until we have a solution.
_goenv version
from goenv.
FYI running $ make
on ~/.goenv yields the the following:
✓ prints go-build version when '--version' argument is given
✗ {before,after}_install hooks get triggered when '--force' argument and version argument is not already installed version and gets installed
(from function `assert_equal' in file test/./test_assert_helpers.bash, line 33,
from function `assert_output' in file test/./test_assert_helpers.bash, line 60,
in test file test/goenv-install.bats, line 728)
`assert_output <<-OUT' failed
expected: (newline not part of expected output)
before: TEST_DIR/root/versions/1.2.2
Downloading 1.2.2.tar.gz...
-> http://localhost:8090/1.2.2/1.2.2.tar.gz
Installing Go Linux 64bit 1.2.2...
Installed Go Linux 64bit 1.2.2 to TEST_DIR/root/versions/1.2.2
after: 0
REHASHED
actual: (newline not actual output)
before: TEST_DIR/root/versions/1.2.2
after: 0
REHASHED
✗ {before,after}_install hooks get triggered when '-f' argument and version argument is not already installed version and gets installed
(from function `assert_equal' in file test/./test_assert_helpers.bash, line 33,
from function `assert_output' in file test/./test_assert_helpers.bash, line 60,
in test file test/goenv-install.bats, line 783)
`assert_output <<-OUT' failed
expected: (newline not part of expected output)
before: TEST_DIR/root/versions/1.2.2
Downloading 1.2.2.tar.gz...
-> http://localhost:8090/1.2.2/1.2.2.tar.gz
Installing Go Linux 64bit 1.2.2...
Installed Go Linux 64bit 1.2.2 to TEST_DIR/root/versions/1.2.2
after: 0
REHASHED
actual: (newline not actual output)
before: TEST_DIR/root/versions/1.2.2
after: 0
REHASHED
✗ rehashes shims when '-f' argument and version argument is not already installed version and gets installed
(from function `assert_equal' in file test/./test_assert_helpers.bash, line 33,
from function `assert_output' in file test/./test_assert_helpers.bash, line 60,
in test file test/goenv-install.bats, line 825)
`assert_output <<-OUT' failed
expected: (newline not part of expected output)
Downloading 1.2.2.tar.gz...
-> http://localhost:8090/1.2.2/1.2.2.tar.gz
Installing Go Linux 64bit 1.2.2...
Installed Go Linux 64bit 1.2.2 to TEST_DIR/root/versions/1.2.2
actual: (newline not actual output)
✗ adds patch version '0' to definition when version argument is not already installed version and gets installed
(from function `assert_equal' in file test/./test_assert_helpers.bash, line 33,
from function `assert_output' in file test/./test_assert_helpers.bash, line 60,
in test file test/goenv-install.bats, line 894)
`assert_output <<-OUT' failed
expected: (newline not part of expected output)
Adding patch version 0 to 1.2
Downloading 1.2.0.tar.gz...
-> http://localhost:8090/1.2.0/1.2.0.tar.gz
Installing Go Linux 64bit 1.2.0...
Installed Go Linux 64bit 1.2.0 to TEST_DIR/root/versions/1.2.0
actual: (newline not actual output)
Adding patch version 0 to 1.2
✓ has usage instructions
Thnxs!
from goenv.
Found a temporary solution:
$ export GOPKG=go1.15.6.linux-arm64.tar.gz
$ wget https://golang.org/dl/$GOPKG
$ tar -C ~/.goenv/versions/1.15.6 -xvf $GOPKG
$ goenv global 1.15.6 && goenv rehash
$ rm $GOPKG
from goenv.
Same issue here; tried reinstalling, using Brew (vs cloning manually), checked and played around with my ~/.zshrc
a lot, too. It's quite the pickle.
Thanks for the temporary fix @fungl164.
from goenv.
I agree that the UX of goenv install
silently failing is not great, but for M1 (Apple Silicon) darwin/arm64
support was not officially introduced until Go 1.17, so it makes sense that the installation of any version below 1.17 would fail on that platform.
from goenv.
would it be useful to allow "build from source" for older versions?
from goenv.
dupe of #106
from goenv.
Related Issues (20)
- goenv init adds shims to the right HOT 1
- Release a new goenv version to make go 1.20.1 version available HOT 6
- How to combine Goenv to use VSCode? HOT 6
- Switching directories doesn't change go version HOT 11
- goenv global and local to use latest Patch Version when unspecified HOT 6
- Add options to remove download progress bar from output HOT 3
- Add support for go1.20.4 (and go1.19.9) HOT 3
- Add support for Go 1.20.5 and Go 1.19.10 HOT 1
- Add support for Go 1.20.6 HOT 4
- Move goenv project to go-nv/goenv? HOT 3
- Write documentation on how to update goenv in AWS CodeBuild Images
- 1.21.0 having install_bsd_arm is causing errors with install_bsd_arm: command not found HOT 8
- PROPOSAL: V3 Collaborative effort? - move to golang-based CLI HOT 2
- Next release? HOT 3
- Add Windows support HOT 2
- If ls or other system utilities are customized, goenv fails HOT 3
- GO_BUILD_MIRROR_URL is not working HOT 2
- Switching Go version when process.env["GOROOT"] is set is unsupported.
- immediate release of new Go versions HOT 4
- Go 1.20.14 not available in goenv HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goenv.