Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "failed to load source for a dependency" when it's specified by "path" #47

Open
atroche opened this issue Sep 3, 2019 · 1 comment

Comments

@atroche
Copy link

atroche commented Sep 3, 2019

🐛 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

@robertohuertasm
Copy link

robertohuertasm commented Sep 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants