From 47962e73209f32049f174dd0d6533aa536ba79d4 Mon Sep 17 00:00:00 2001 From: alok Date: Sat, 23 Jun 2018 15:25:50 -0700 Subject: [PATCH] reseting GOLANG paths --- aws-scripts/setup_golang.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aws-scripts/setup_golang.sh b/aws-scripts/setup_golang.sh index dd99679b8..f398cae39 100755 --- a/aws-scripts/setup_golang.sh +++ b/aws-scripts/setup_golang.sh @@ -2,17 +2,18 @@ sudo yum update -y sudo yum install -y golang + # GOROOT is the location where Go package is installed on your system echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile # GOPATH is the location of your work directory -echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile +echo "export GOPATH=$HOME/projects" >> $HOME/.bash_profile # PATH in order to access go binary system wide echo "export PATH=$PATH:$GOROOT/bin" >> $HOME/.bash_profile export GOROOT=/usr/lib/golang -export GOROOT=/usr/lib/golang +export GOPATH=$HOME/projects export PATH=$PATH:$GOROOT/bin source $HOME/.bash_profile sudo go get github.com/go-stack/stack \ No newline at end of file