buildkite/buildkite-agent-metrics

Install problem: backend/ssm.go:12:34: cannot use session.New()

sschaetz opened this issue · 1 comments

I'm trying to install this on

$ uname -a
Linux buildkite-agent-metric 4.15.0-1034-gcp #36-Ubuntu SMP Thu Jun 6 14:47:38 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

and go version

$ go version
go version go1.11 linux/amd64

getting error

$ go get  github.com/buildkite/buildkite-agent-metrics
# github.com/buildkite/buildkite-agent-metrics/backend
go/src/github.com/buildkite/buildkite-agent-metrics/backend/ssm.go:12:34: cannot use session.New() (type *session.Session) as type "github.com/aws/aws-sdk-go/aws/client".ConfigProvider in argument to ssm.New:
        *session.Session does not implement "github.com/aws/aws-sdk-go/aws/client".ConfigProvider (wrong type for ClientConfig method)
                have ClientConfig(string, ...*"github.com/buildkite/buildkite-agent-metrics/vendor/github.com/aws/aws-sdk-go/aws".Config) "github.com/buildkite/buildkite-agent-metrics/vendor/github.com/aws/aws-sdk-go/aws/client".Config
                want ClientConfig(string, ...*"github.com/aws/aws-sdk-go/aws".Config) "github.com/aws/aws-sdk-go/aws/client".Config

I'm probably doing something wrong - any hint would be appreciated.

Solved by using/installing the released binary.