Hacker News new | ask | show | jobs
by bigdubs 1602 days ago
4 ... of its 5 dependencies. It's just missing Viper. We should do a better job with the title here.

See: - [0] https://github.com/muesli/coral/blob/master/go.mod - [1] https://github.com/spf13/cobra/blob/master/go.mod

3 comments

...but that fifth dependency makes all the difference!

  $ go mod init foo && go get github.com/spf13/cobra && wc -l go.sum
  758 go.sum

  $ go mod init foo && go get github.com/muesli/coral && wc -l go.sum
  10 go.sum
(Number of lines in go.sum != number of transitive dependencies, of course, but the scale of the difference still hints at how much extra is being pulled into your project.)
The dependency that was dropped has many dependencies that would get added to your project.

https://github.com/spf13/viper/blob/master/go.mod