Aws-sdk-go: Getting dependencies fails in Go 1.11

Created on 2 Oct 2018  路  4Comments  路  Source: aws/aws-sdk-go

Please fill out the sections below to help us address your issue.

Version of AWS SDK for Go?

1.15.46

Version of Go (go version)?

1.11

What issue did you see?

When I run go get I receive the following error:

go: finding github.com/aws/aws-sdk-go/service/s3 latest
go: finding github.com/aws/aws-sdk-go/service/s3/s3manager latest
go: finding github.com/aws/aws-sdk-go/aws/session latest
go: finding github.com/aws/aws-sdk-go/aws/endpoints latest
go: finding github.com/aws/aws-sdk-go/internal/shareddefaults latest
go: finding github.com/aws/aws-sdk-go/service latest
go: finding github.com/aws/aws-sdk-go/aws latest
go: finding github.com/aws/aws-sdk-go/internal latest
../../../../pkg/mod/github.com/aws/[email protected]/aws/config.go:8:2: unknown import path "github.com/aws/aws-sdk-go/aws/endpoints": cannot find module providing package github.com/aws/aws-sdk-go/aws/endpoints
template/aws.go:8:2: unknown import path "github.com/aws/aws-sdk-go/aws/session": cannot find module providing package github.com/aws/aws-sdk-go/aws/session
../../../../pkg/mod/github.com/aws/[email protected]/aws/credentials/shared_credentials_provider.go:10:2: unknown import path "github.com/aws/aws-sdk-go/internal/shareddefaults": cannot find module providing package github.com/aws/aws-sdk-go/internal/shareddefaults
template/aws.go:9:2: unknown import path "github.com/aws/aws-sdk-go/service/s3": cannot find module providing package github.com/aws/aws-sdk-go/service/s3
template/aws.go:10:2: unknown import path "github.com/aws/aws-sdk-go/service/s3/s3manager": cannot find module providing package github.com/aws/aws-sdk-go/service/s3/s3manager

Steps to reproduce

If you have an runnable example, please include it.

Most helpful comment

I fixed the issue by cleaning the cache with the following command:

```go
go clean -modcache
````

All 4 comments

I fixed the issue by cleaning the cache with the following command:

```go
go clean -modcache
````

I've run into this same issue with aws-sdk-go v1.16.7. Is this a bug with vgo?

@turtleDev are you using vgo or go 1.11 support for modules? In my local testing I've only been using Go 1.11 mods.

@jasdel I'm using go version 1.11.2

Was this page helpful?
0 / 5 - 0 ratings