-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Musl issue with Diesel #94
Comments
The actual error:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug description
When running npx Serverless deploy, or cargo build --release --target x86_64-unknown-linux-musl, I receive this error.
I've cut most of the error because it would make this unreadable.
I have walked through most of the steps that you will find online for MacOS such as :
serverless.yml
main.rs // the crate completely compiles if I comment out the pool and create_user fn which runs a diesel function.
This issue looks similar to the one listed for open-ssl, but this is an issue for diesel as well.
🤔 Expected Behavior
This should compile as normal.
If I run cargo build, it'll compile perfectly fine, but running cargo build --release --target x86_64-unknown-linux-musl,
not so much
👟 Steps to reproduce
make sure to use any diesel functionality, in main.rs, then attempt to compile with cargo build --release --target x86_64-unknown-linux-musl or npx Serverless deploy
🌍 Your environment
MacOS big sure 11.1
rustc 1.49.0 (e1884a8e3 2020-12-29)
cargo 1.49.0 (d00d64df9 2020-12-05)
serverless version:
"serverless": "^1.83.2",
rust-plugin version:
"serverless-rust": "^0.3.8"
The text was updated successfully, but these errors were encountered: