Last Updated: December 29, 2022
·
264.5K
· hermanschaaf

Install all Go project dependencies in one command

To install all dependencies of a Golang project or golang projects recursively with the go get command, change directory into the project and simply run:

go get ./...

This is specifically applicable to Revel apps, where there are many different packages contained in one working project (controllers, models, routes, etc)

3 Responses
Add your response

I didn't have much luck with this. It was throwing bzr warnings on labix.org/v2/mgo. It does traverse the directories properly.

over 1 year ago ·

adding -t will also install test dependencies

over 1 year ago ·

i am not able to set gopath,
can u plz elaborate with example

over 1 year ago ·