Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

example doesn't work #4

Closed
nicolai86 opened this issue Feb 1, 2017 · 2 comments
Closed

example doesn't work #4

nicolai86 opened this issue Feb 1, 2017 · 2 comments

Comments

@nicolai86
Copy link

nicolai86 commented Feb 1, 2017

Thank you for this very promising approach to run go on lambda!

When I try to submit a lambda function as described in the example I get the following error:

START RequestId: 517245b7-e880-11e6-9666-116d097ce2b1 Version: $LATEST
Unable to import module 'handler': plugin.Open: plugin was built with a different version of package github.com/eawsy/aws-lambda-go-core/service/lambda/runtime

END RequestId: 517245b7-e880-11e6-9666-116d097ce2b1
REPORT RequestId: 517245b7-e880-11e6-9666-116d097ce2b1	Duration: 0.24 ms	Billed Duration: 100 ms 	Memory Size: 128 MB	Max Memory Used: 18 MB	

I'm using the docker image eawsy/aws-lambda-go-shim:latest - I've tried the two different versions of github.com/eawsy/aws-lambda-go-core available, aa9f99 and 2d5865, but both produce the same error.

I've rebuild the docker containers locally to ensure that along the way it's the same version of the plugin which is being used, but the error persists.

Q: how to get a working setup?

@nicolai86
Copy link
Author

nicolai86 commented Feb 1, 2017

Alright, found the culprit: I'm bundling the source /w gb, so I modified the Makefile to not use my GOPATH, but the vendored folder.

Removing this change fixes the build!

@fsenart
Copy link
Contributor

fsenart commented Feb 1, 2017

Ok, I was writing a big answer to say such things :)

PS: vendor folder is not yet supported due to golang/go#18827. We will soon provide an auxiliary Docker image to use when vendoring is needed, waiting for the Go team to resolve the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants