From 03b3a5ed11beb840d9ea1273a2499bf5eb96b5d5 Mon Sep 17 00:00:00 2001 From: Tomas Srnka Date: Tue, 21 Jul 2026 14:10:24 +0200 Subject: [PATCH] fix(api): copy auth/internal into api and dashboard-api image builds PR #3314 refactored packages/auth so pkg/auth re-exports from new packages/auth/internal/* packages, but the api and dashboard-api Dockerfiles copy only auth/pkg into the build context. make build inside the container then fails with "no required module provides package .../auth/internal/...", breaking build-and-upload on main for every environment. Copy auth/internal alongside auth/pkg in both images. auth/internal only imports db/pkg and shared/pkg, which are already copied. Co-Authored-By: Claude Fable 5 --- packages/api/Dockerfile | 1 + packages/dashboard-api/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/api/Dockerfile b/packages/api/Dockerfile index 63d82e1cd7..0cc1e468e9 100644 --- a/packages/api/Dockerfile +++ b/packages/api/Dockerfile @@ -24,6 +24,7 @@ RUN cd /build/shared && go mod download && \ WORKDIR /build COPY ./auth/pkg ./auth/pkg +COPY ./auth/internal ./auth/internal COPY ./clickhouse/pkg ./clickhouse/pkg COPY ./shared/pkg ./shared/pkg COPY ./db/client ./db/client diff --git a/packages/dashboard-api/Dockerfile b/packages/dashboard-api/Dockerfile index fc66ec7cba..366bb12ccb 100644 --- a/packages/dashboard-api/Dockerfile +++ b/packages/dashboard-api/Dockerfile @@ -30,6 +30,7 @@ RUN go mod download WORKDIR /build COPY ./auth/pkg ./auth/pkg +COPY ./auth/internal ./auth/internal COPY ./clickhouse/pkg ./clickhouse/pkg COPY ./shared/pkg ./shared/pkg COPY ./db/client ./db/client