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

fix: use the same CARGO_HOME path as the softprops/lambda-rust container #101

Closed kenkoooo closed 3 years ago

kenkoooo commented 3 years ago

Even though CARGO_HOME is configured as CARGO_HOME=/cargo in softprops/lambda-rust, which is the default docker container of this plugin, this plugin mounts the volumes to /root/.cargo, so the cache is not working.

In this PR, the mount target is changed to /cargo.

kenkoooo commented 3 years ago

@softprops Since it's my first time sending a PR to this project, I'm not familiar with the review process. So please let me know if there is something I need to do before sending a request. Thanks!