4 ms·
I wanted to know the most used Go dependencies (not most starred or most downloaded, but most depended upon), so I made a scraper to get the go.mod from a few h
by thiht 3y ago
I wanted to know the most used Go dependencies (not most starred or most downloaded, but most depended upon), so I made a scraper to get the go.mod from a few hundreds open source project on GitHub, and got the go.mod of each of their dependencies recursively. I stored this in a neo4j (first time I had the opportunity to use a graph database!) and got my answer (stretchr/testify is the most used dependency in the open source ecosystem by a large margin).
It’s not "finished" because I still have tons of ideas for improvements, and still want to make a blog post explaining how and why I did it, and show the results in an interactive page (and also share the database with everyone).
- coumbaya 3y agoInteresting, but I do wonder what the result would be if you excluded _test.go ?
- thiht 3y agoThe second most used was google/go-cmp but I also think it’s used mostly in tests. It’s a bit annoying that test dependencies are not listed separately in go.mod files. After that there was a bunch of dependencies related to AWS SDK, GCP SDK and Kubernetes.