Skip to content

Commit 8e32646

Browse files
authored
Merge pull request #22 from yageek/feature/goroot
Setup GOROOT on init.
2 parents 0c0f4c7 + 02b8a05 commit 8e32646

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libexec/goenv-init

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ mkdir -p "${GOENV_ROOT}/"{shims,versions}
8787
case "$shell" in
8888
fish )
8989
echo "setenv PATH '${GOENV_ROOT}/shims' \$PATH"
90+
echo "setenv GOROOT '$(goenv prefix)'"
9091
echo "setenv GOENV_SHELL $shell"
9192
;;
9293
* )
9394
echo 'export PATH="'${GOENV_ROOT}'/shims:${PATH}"'
95+
echo 'export GOROOT="$(goenv prefix)"'
9496
echo "export GOENV_SHELL=$shell"
9597
;;
9698
esac

0 commit comments

Comments
 (0)