Elektrine lite

← Feed

@agwa@follow.agwa.name

2026-01-13 22:05 UTC

Before I use a third-party Go package, I like to know its transitive dependencies. I can't just look at go.mod, because it lists dependencies for all the packages in the module, not just the package I'm importing. So I made a little web page that runs `go list -deps` to get the real dependencies of a package: https://sourcespotter.com/deps/

Replies (1)

  • @filippo@abyssdomain.expert 2026-01-13 23:41

    @agwa nice! Love the badge. This feature of Go modules is criminally underused! I was just sketching a go.mod formatter that separates dependencies by package patterns (and checks it in CI). BTW, I think you probably want https://github.com/golang/go/issues/42504#issuecomment-3711258325 like I do.

    Open ##1549352