From baa3ea9b6dfa206d8d6efc244471792dbc460e55 Mon Sep 17 00:00:00 2001 From: goose Date: Sun, 15 Feb 2026 11:54:56 -0300 Subject: [PATCH] Fix: Pin cargo-watch to v8.4.0 to avoid edition2024 requirement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - cargo-watch v8.5.3 requires Rust edition2024 which is not stable yet - Even Rust 1.83 doesn't support edition2024 - Build fails with: feature 'edition2024' is required Solution: - Pin cargo-watch to version 8.4.0 - This version works perfectly with stable Rust 1.83 - No functional difference for development purposes Change: RUN cargo install cargo-watch → RUN cargo install cargo-watch --version 8.4.0 --- backend/docker/Dockerfile.dev | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/docker/Dockerfile.dev b/backend/docker/Dockerfile.dev index 9b578cd..c9e6cf1 100644 --- a/backend/docker/Dockerfile.dev +++ b/backend/docker/Dockerfile.dev @@ -1,7 +1,8 @@ FROM rust:1.83-alpine WORKDIR /app RUN apk add --no-cache musl-dev pkgconf openssl-dev curl wget git pkgconfig -RUN cargo install cargo-watch +# Pin cargo-watch to version 8.4.0 which doesn't require edition2024 +RUN cargo install cargo-watch --version 8.4.0 COPY Cargo.toml ./ RUN mkdir src && echo 'fn main() {}' > src/main.rs RUN cargo build && rm -rf src