mrserverless/serverless-golang

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

mrserverless opened this issue · 1 comments

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.

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.