Update your go version to the latest and try it again. Prometheus' CI uses go version 1.15. Maybe, that can work out for you.
On Friday, October 2, 2020 at 8:55:28 PM UTC+5:30 [email protected] wrote: > On Friday, 2 October 2020 16:20:50 UTC+1, Viren Negi wrote: >> >> go version go1.13.7 darwin/amd64 >> ... >> > >> running all tests >> GO111MODULE=on go test -race -mod=vendor ./... >> # github.com/prometheus/prometheus/discovery/digitalocean [ >> github.com/prometheus/prometheus/discovery/digitalocean.test] >> discovery/digitalocean/digitalocean_test.go:45:3: t.Cleanup undefined >> (type *testing.T has no field or method Cleanup) >> note: module requires Go 1.14 >> > > I think there is a very strong clue in that message :-) > > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/843c16b5-ca8b-4aea-8441-a29b14decd91n%40googlegroups.com.

