Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.29 KB

ENVIRONMENT_VARIABLES.md

File metadata and controls

14 lines (12 loc) · 1.29 KB

Environment variables

You can configure how goenv operates with the following settings:

name default description
GOENV_VERSION Specifies the Go version to be used.
Also see goenv help shell.
GOENV_ROOT ~/.goenv Defines the directory under which Go versions and shims reside.
Current value shown by goenv root.
GOENV_DEBUG Outputs debug information.
Also as: goenv --debug <subcommand>
GOENV_HOOK_PATH Colon-separated list of paths searched for goenv hooks.
GOENV_DIR $PWD Directory to start searching for .go-version files.
GOENV_DISABLE_GOROOT false Disables management of GOROOT.
Set this to true if you want to use a GOROOT that you export.
GOENV_DISABLE_GOPATH false Disables management of GOPATH.
Set this to true if you want to use a GOPATH that you export. It's recommend that you use this (as set to false) to avoid mixing multiple versions of golang packages at GOPATH when using different versions of golang. See #72 (comment)
GOENV_GOPATH_PREFIX $HOME/go GOPATH prefix that's exported when GOENV_DISABLE_GOPATH is not true.
E.g in practice it can be $HOME/go/1.12.0 if you currently use 1.12.0 version of go.