From 5dbc02b58f673e16e06337c0ad3a0961681ae951 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Wed, 10 Jun 2026 02:41:59 +0200 Subject: [PATCH] fix: remove .sqlx copy from Dockerfile Queries were migrated to the runtime sqlx API (no query! macros) in f4fd915, making the pre-verified .sqlx cache obsolete. The directory is also gitignored, so the COPY would break any fresh build. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59cc876..897e544 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ WORKDIR /build # Cache dependency compilation separately from source COPY Cargo.toml Cargo.lock ./ COPY .cargo ./.cargo -COPY .sqlx ./.sqlx COPY crates/adapters/activitypub/Cargo.toml crates/adapters/activitypub/Cargo.toml COPY crates/adapters/auth/Cargo.toml crates/adapters/auth/Cargo.toml COPY crates/adapters/event-payload/Cargo.toml crates/adapters/event-payload/Cargo.toml @@ -62,8 +61,8 @@ RUN cargo fetch # Now copy real sources (invalidates cache only on source changes) COPY crates ./crates -# .cargo/config.toml sets SQLX_OFFLINE=true; .sqlx contains the pre-verified query cache. -# No live database needed at compile time. +# All sqlx queries use the runtime API (no query! macros), so no database +# or .sqlx cache is needed at compile time. # # To build with PostgreSQL backend instead: # --build-arg FEATURES=postgres,postgres-federation