Repository navigation
macOS Dockerless Error #86
Copy link
Copy link
Open
Description
🐛 Bug description
❯ rustup target add x86_64-unknown-linux-musl
info: component 'rust-std' for target 'x86_64-unknown-linux-musl' is up to date
❯ brew install filosottile/musl-cross/musl-cross
Warning: filosottile/musl-cross/musl-cross 0.9.9 is already installed and up-to-date
To reinstall 0.9.9, run `brew reinstall musl-cross`
❯ sls invoke local -f getPosts
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Building Rust jkv2-demo.get_posts func...
Serverless: Running local cargo build on darwin
Compiling cfg-if v0.1.10
Compiling lazy_static v1.4.0
Compiling pin-project-internal v0.4.22
Compiling futures-core v0.3.5
Compiling slab v0.4.2
Compiling log v0.4.8
Compiling version_check v0.9.2
Compiling proc-macro-hack v0.5.16
error[E0463]: can't find crate for `core`
|
= note: the `x86_64-unknown-linux-musl` target may not be installed
error[E0463]: can't find crate for `core`
|
= note: the `x86_64-unknown-linux-musl` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-unknown-linux-musl` target may not be installed
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-unknown-linux-musl` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: build failed
Serverless: Rust build encountered an error: undefined 101.
🌍 Your environment
serverless version:1.82.0
rust-plugin version:0.3.8
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
softprops commentedon Sep 5, 2020
Thanks for the report.
Can you paste the cargo.toml file contents you are using here?
seanpianka commentedon Oct 10, 2020
I'm seeing the same issues with the same development environment:
Should I be using:
Or will this not work in Lambda?
seanpianka commentedon Oct 10, 2020
This issue prompted me to try the above command due to an issue with the Rust version used by the compiler:
serverless version:1.83.0
rust-plugin version:0.3.8