-
Notifications
You must be signed in to change notification settings - Fork 545
Incompatible rust (1.72.0) and sqlx (0.7.4) versions #259
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
Comments
I can confirm that 1.77.2 gets the build working with This topic is actually addressed shortly afterwards in the "bare operating system" section, but to get the rust-slim build working at this stage, just install the missing dependencies explicitly: -FROM rust:1.72.0-slim AS builder
+FROM rust:1.77.2-slim AS builder
-RUN apt update && apt install lld clang -y
+RUN apt update && apt install pkg-config libssl-dev lld clang -y |
I have the same error in the process of working with Chapter 5. Fixing the |
This has been fixed in the next book release by updating everything to latest. Closing! |
When going through the Dockerfile in the chapter 5, I got the following error when running
docker build --tag zero2prod --file Dockerfile .
This error was not happening when running
cargo build --release
locally, so I assumed was something related to the rust version 1.72.0 as opposed to the 1.77.2 that I'm running locally. I guess that by the time the book was writtensqlx
was not yet on version 0.7.4, but probably on a smaller patch version. I'm new to Rust so I can't tell where the breaking change was added, but probably on sqlx, which is relying in a feature that is not yet available on Rust 1.72.0 but it is on 1.77.2, I haven't looked into the error, since upgrading the Dockerfile base image to 1.77.2 solves the problem.Might be a good idea to lock all minor and patch versions to have a deterministic build.
The text was updated successfully, but these errors were encountered: