Created
January 11, 2017 16:17
-
-
Save silentsudo/e0e4f2465c0b3420830a68d1ae3d556c to your computer and use it in GitHub Desktop.
Go Installation Libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#GET current working directory | |
CURRENT_DIR=`pwd` | |
echo "GOPATH is pointing to ${CURRENT_DIR}" | |
#Export GOPATH for current working directory | |
export GOPATH=${CURRENT_DIR} | |
#Change Directory permission to executable | |
chmod +x ${GOPATH} | |
#Delete github dependency so that they can be reinstalled | |
#Github Issue: https://github.com/golang/go/issues/18591 | |
#Modify this script if you are adding any other packages | |
rm -rf ${GOPATH}/src/github.com | |
#dependencies.txt contain list of go get -u (repo path) | |
#dependencies in new line add any new dependency and execute install.sh again | |
sh dependencies.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment