Reputation: 11107
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?
Upvotes: 3
Views: 7407
Reputation: 61671
Try something like this:
cd ${GOPATH}/src/github.com/<project-name>; go clean
rm -f ${GOPATH}/bin/<your-project-executable>
# If your project is hosted on github
rm -rf ${GOPATH}/src/github.com/<project-name>
go get github.com/<project-name>
cd ${GOPATH}/src/github.com/<project-name>
glide install
go install
Upvotes: 3