How to install all GO dependencies

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!! =)