This is the (partial) output of go list -m -json all on my project. I've just done a go clean -modcache followed by go mod download for the project. The second two dependencies aren't shown when I run go mod download -json
{
"Path": "github.com/deitrix/playground/redisratelimiter",
"Main": true,
"Dir": "/home/user/Projects/go/src/github.com/deitrix/playground/redisratelimiter",
"GoMod": "/home/user/Projects/go/src/github.com/deitrix/playground/redisratelimiter/go.mod",
"GoVersion": "1.20"
}
{
"Path": "github.com/bsm/ginkgo/v2",
"Version": "v2.7.0",
"Time": "2023-01-27T15:08:10Z",
"Indirect": true
}
{
"Path": "github.com/bsm/gomega",
"Version": "v1.26.0",
"Time": "2023-01-27T15:21:26Z",
"Indirect": true
}
{
"Path": "github.com/cespare/xxhash/v2",
"Version": "v2.2.0",
"Time": "2022-12-04T02:06:23Z",
"Indirect": true,
"Dir": "/home/user/Projects/go/pkg/mod/github.com/cespare/xxhash/[email protected]",
"GoMod": "/home/user/Projects/go/pkg/mod/cache/download/github.com/cespare/xxhash/v2/@v/v2.2.0.mod",
"GoVersion": "1.11"
}
{
"Path": "github.com/dgryski/go-rendezvous",
"Version": "v0.0.0-20200823014737-9f7001d12a5f",
"Time": "2020-08-23T01:47:37Z",
"Indirect": true,
"Dir": "/home/user/Projects/go/pkg/mod/github.com/dgryski/[email protected]",
"GoMod": "/home/user/Projects/go/pkg/mod/cache/download/github.com/dgryski/go-rendezvous/@v/v0.0.0-20200823014737-9f7001d12a5f.mod"
}```