How to install all GO dependencies

Paulo Freitas
Jul 26, 2017 · 1 min read

One thing I notice right away when first started coding in GO is that there is no “requirements.txt” or “build.gradle” where I explicitly declare all my build dependencies. Instead, while developing, I just run go get <something> and it is done.

But then, I push it to a remote upstream and a CI Pipeline gets kicked off and Bang!! It does not have any of the dependencies I installed using go get . In order to install all dependencies imported in your Go files, run:

go get ./

There you GO!! =)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade