serverless-rust
serverless-rust copied to clipboard
Getting "failed to load source for a dependency" when it's specified by "path"
🐛 Bug description
When I do sls deploy with this in my Cargo.toml:
headless_chrome = {path = "../headless_chrome/"}
I get this error: https://gist.github.com/atroche/661d7b0df67889635e44317fafb6ec48
And I've also tried changing that path to be absolute.
When I change that line to
headless_chrome = "0.9.0"
Then sls deploy succeeds.
🤔 Expected Behavior
It should've built and deployed without an error.
👟 Steps to reproduce
Change a dependency to point to a local crate, then do sls deploy.
🌍 Your environment
Your Environment Information ---------------------------
Operating System: linux
Node Version: 10.15.3
Framework Version: 1.51.0
Plugin Version: 1.3.10
SDK Version: 2.1.0
Your serverless.yaml is on the root of the workspace? or is it at a specific crate level? If that's your case you can take a look at this example that shows how to use the plugin in a workspace.