Skip to content

Commit

Permalink
fix: implement load var env for goroot and gopath (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Dec 5, 2023
1 parent 2334450 commit 0f8fbf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/base.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ function goenv::internal::install {

function goenv::internal::load {
unset GOROOT
unset GOPATH
[ -e "${GOBREW_ROOT_BIN}" ] && export PATH="${GOBREW_CURRENT_BIN}:${GOBREW_ROOT_BIN}:${PATH}"
export GOROOT="${HOME}/.gobrew/current/go"
export GOPATH="${HOME}/.gobrew/current/go"
}

function goenv::internal::package::get {
Expand Down

0 comments on commit 0f8fbf6

Please sign in to comment.