Skip to content
Permalink
Browse files

add check for GOPATH/bin in PATH

  • Loading branch information...
cbrake committed Dec 26, 2018
1 parent d53e104 commit 727da97eb9929290cd50db611d41cdde67d09c23
Showing with 17 additions and 0 deletions.
  1. +17 −0 envsetup.sh
@@ -16,10 +16,27 @@ app_check_elm() {
return 0
}

app_check_gopath_bin() {
if [ -z "$GOPATH" ]; then
GOPATH=~/go
fi

GOBIN=$GOPATH/bin

if [[ ":$PATH:" != *":$GOBIN:"* ]]; then
echo "You must add \$GOPATH/bin to your environment PATH variable"
echo "GOPATH defaults to ~/go"
return 1
fi

return 0
}

app_setup() {
go mod download
go install github.com/benbjohnson/genesis/... || return 1
app_check_elm || return 1
app_check_gopath_bin || return 1
return 0
}

2 comments on commit 727da97

@cbrake

This comment has been minimized.

Copy link
Contributor Author

replied Dec 26, 2018

@collinbrake can you pull this change, re-source envsetup.sh, and make sure app_setup still works on your machine? I added a check to verify that $GOPATH/bin is in your $PATH

@collinbrake

This comment has been minimized.

Copy link
Contributor

replied Dec 27, 2018

@cbrake - I merged and app_setup still works

Please sign in to comment.
You can’t perform that action at this time.