summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-08-06 01:16:50 +0200
committerTobias Klauser <tklauser@distanz.ch>2022-08-06 01:16:50 +0200
commita95410107e067559db6db11266ff17a7590e0e32 (patch)
tree27207d7d4ddc30ebb4e19bc9f560a5f0e89143eb
parent88717ab6db79245cf29f3c382d0ef8a45096603f (diff)
zshenv: support GOARCH=arm64, don't set GOARCH on unsupported arch
-rw-r--r--.zsh/zshenv/80_go3
1 files changed, 1 insertions, 2 deletions
diff --git a/.zsh/zshenv/80_go b/.zsh/zshenv/80_go
index b245430..49df466 100644
--- a/.zsh/zshenv/80_go
+++ b/.zsh/zshenv/80_go
@@ -16,14 +16,13 @@ if [ -d $_GOROOT ] ; then
case "$arch" in
x86_64) export GOARCH="amd64";;
i*86) export GOARCH="386";;
- *) export GOARCH="unsupported";;
+ arm64) export GOARCH="arm64";;
esac
os="$(uname)"
case "$os" in
Linux) export GOOS="linux";;
Darwin) export GOOS="darwin";;
- *) export GOOS="unsupported";;
esac
path_prepend $_GOROOT/bin