softprops / serverless-rust

⚡ 🦀 a serverless framework plugin for rustlang applications
https://www.npmjs.com/package/serverless-rust
MIT License
548 stars 82 forks source link

Local invokes with dockerless: true fail with permission error #93

Closed matej-mnoucek closed 3 years ago

matej-mnoucek commented 3 years ago

ADM-ZIP v0.4.14 library does not respect file permissions in addFile() method (probably a bug). The bootstrap binary file ends up with no x permission. Updating to ADM-ZIP v0.5.1 fixes the problem.

🐛 Bug description

If you run npx serverless invoke local --function <function_name> with dockerless: true, it fails with Error: fork/exec /var/task/bootstrap: permission denied.

🤔 Expected Behavior

Local invoke should succeed for both dockerless: true/false.

👟 Steps to reproduce

Run e.g. minimal echo application with dockerless: true.

🌍 Your environment

Reproduced on Manjaro KDE 20.2 (Arch Linux) and macOS 11.0.

serverless version: 2.15.0 rust-plugin version: 0.3.8