Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Created January 11, 2017 16:17
Show Gist options
  • Save silentsudo/e0e4f2465c0b3420830a68d1ae3d556c to your computer and use it in GitHub Desktop.
Save silentsudo/e0e4f2465c0b3420830a68d1ae3d556c to your computer and use it in GitHub Desktop.
Go Installation Libraries
#!/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