Please fill out the sections below to help us address your issue.
1.15.46
go version)?1.11
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
If you have an runnable example, please include it.
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
Most helpful comment
I fixed the issue by cleaning the cache with the following command:
```go
go clean -modcache
````