mrserverless / serverless-golang

AWS Lambda Go functions using Serverless Framework and Python shim
Other
302 stars 21 forks source link

Unable to import module 'handler': plugin.Open: libc.musl-x86_64.so.1 #14

Closed mrserverless closed 7 years ago

mrserverless commented 7 years ago

Getting following error from a deployed API Gateway function generated using serverless install:

Unable to import module 'handler': plugin.Open: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory

Thanks to @flemay for pointing this out.

mrserverless commented 7 years ago

This was caused by using alpine based golang container to build the .so file, rather than the Amazon Linux based go-shim container. By reverting this, everything works again.