Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cbednarski
Last active February 12, 2016 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbednarski/5e840577723ea179d2d3 to your computer and use it in GitHub Desktop.
Save cbednarski/5e840577723ea179d2d3 to your computer and use it in GitHub Desktop.
When building go with vendored dependencies, the error message for a missing dependency is not super intuitive.
post-processor/amazon-import/post-processor.go:139: cannot use session (type *session.Session) as type "github.com/aws/aws-sdk-go/aws/client".ConfigProvider in argument to s3manager.NewUploader:
*session.Session does not implement "github.com/aws/aws-sdk-go/aws/client".ConfigProvider (wrong type for ClientConfig method)
have ClientConfig(string, ...*"github.com/mitchellh/packer/vendor/github.com/aws/aws-sdk-go/aws".Config) "github.com/mitchellh/packer/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
post-processor/amazon-import/post-processor.go:12:2: cannot find package "github.com/aws/aws-sdk-go/service/s3" in any of:
/Users/cbednarski/go/src/github.com/mitchellh/packer/vendor/github.com/aws/aws-sdk-go/service/s3 (vendor tree)
/usr/local/go/src/github.com/aws/aws-sdk-go/service/s3 (from $GOROOT)
/Users/cbednarski/go/src/github.com/aws/aws-sdk-go/service/s3 (from $GOPATH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment