I have a Go project I installed on my machine via glide install
and go install
. I need to reinstall this go project. What's the best way about doing this? Can I just delete the folder that contains the go project? Do I need to consider anything else in order to achieve a clean reinstall?
Try something like this:
cd ${GOHOME}/src/github.com/<project-name>; go clean
rm -f ${GOHOME}/bin/<your-project-executable>
# If your project is hosted on github
rm -rf ${GOHOME}/src/github.com/<project-name>
go get github.com/<project-name>
cd ${GOHOME}/src/github.com/<project-name>
glide install
go install