Get an aproximation of the download size of your go dependencies.
Note: This works only for projects that use go modules.
WARNING: I have no idea how the go.sum file really works, this is really an approximation
go get -u github.com/rumpl/dep-sum
$ dep-sum <PATH>
Example, for this project a build would need to download ~10MB of dependencies.
❯ ./dep-sum .
5.0 kB github.com/konsorten/[email protected]
5.5 kB github.com/inconshreveable/[email protected]
22 kB github.com/kr/[email protected]
32 kB github.com/kr/[email protected]
34 kB github.com/coreos/[email protected]
36 kB github.com/pmezard/[email protected]
65 kB github.com/dustin/[email protected]
144 kB gopkg.in/[email protected]
170 kB github.com/sirupsen/[email protected]
212 kB github.com/davecgh/[email protected]
255 kB github.com/spf13/[email protected]
334 kB gopkg.in/[email protected]
371 kB github.com/stretchr/[email protected]
504 kB github.com/spf13/[email protected]
8.3 MB golang.org/x/[email protected]
Total dependencies size: 10 MB