I am trying to run the go list -mod=readonly -m -u -json all command on the opentelemetry-collector-contrib project.
It fails with the below error:
$ go list -mod=readonly -m -u -json all
go list -m: loading module retractions for github.com/DataDog/datadog-agent/pkg/trace/exportable@v0.0.0-20201016145401-4646cf596b02: no matching versions for query "latest"
go list -m: loading module retractions for github.com/influxdata/line-protocol/v2@v2.0.0-20210428091617-0567a5134992: no matching versions for query "latest"
$ echo $?
1
I am using go 1.16.5:
$ go version
go version go1.16.5 linux/amd64
I have cleaned the go cache with go clean -modcache with the same result.
I have found both modules https://pkg.go.dev/:
It seems the exact version exists for github.com/DataDog/datadog-agent/pkg/trace/exportable but not for github.com/influxdata/line-protocol, but both report the same error anyway.
I have no clue what golang expects here and how to start troubleshooting the issue.
Can anybody help?