pimterry / lambda-git

A git binary installed through NPM, for use with AWS Lambda
MIT License
78 stars 13 forks source link

Unavailable shared library #21

Open cco3 opened 4 years ago

cco3 commented 4 years ago

I'm getting the following error: git: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

pimterry commented 4 years ago

Yes, in short, I think this library should probably be deprecated now, for most cases, and you should use layers instead, e.g. https://github.com/lambci/git-lambda-layer. Lots of shared libraries are not longer included in AWS's modern base images, so there's quite a lot of separate setup required otherwise.

There's more detail about this over here that might be useful: https://github.com/pimterry/lambda-git/issues/14

I'm going to leave this open until I get around to going through and formally documenting that.

cco3 commented 4 years ago

Any suggestions for if layers are unavailable (e.g., I'm using lambda through netlify)?

pimterry commented 4 years ago

No idea, sorry, that's probably a question best asked to the netlify team.