softprops / serverless-rust

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

runtime resolution broke in the service 1.41.* #37

Closed softprops closed 5 years ago

softprops commented 5 years ago

🐛 Bug description

Describe your issue in detail.

it seems some of the wiring for invoke local changed in serverless 1.41.0 that broke the way this plugin resolves "rust" runtime functions

see for context https://github.com/softprops/serverless-aws-rust-multi/issues/5

🤔 Expected Behavior

upgrading to 1.41.1 should resolve rust functions as expected

👟 Steps to reproduce

🌍 Your environment

serverless version:

rust-plugin version:

softprops commented 5 years ago

this behavior seemed to change in https://github.com/serverless/serverless/issues/5947 . the intent should also technically work for this plugin. the change was into inject a call to package within a call to invoke local. Since serverless rust is already wired into package this should technically be feasible perhaps with some dynamic checks for serverless.version