From ce96a6a571ef5fad2336b0e0c1ebf74c4d829129 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 22 May 2026 12:12:09 +0200 Subject: [PATCH] fix(ci): allow ingestion Dockerfile to fetch internal gitea modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same fix as gitea-mcp commit for the same reason — mcp-chassis (added in commit ca22df2) is hosted at gitea.d-ma.be and Gitea returns http:// in its go-import meta tag, breaking the default go module resolution inside the Docker build. GOPRIVATE+GOPROXY=direct+GOSUMDB=off plus a git config insteadOf rewrite to flip http:// → https:// for gitea.d-ma.be clones. Without this, hyperguild CI Build and deploy failed on the chassis port (sha=ca22df2). Reapplying CI should now succeed. Co-Authored-By: Claude Opus 4.7 (1M context) --- ingestion/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ingestion/Dockerfile b/ingestion/Dockerfile index bf91361..f9b985c 100644 --- a/ingestion/Dockerfile +++ b/ingestion/Dockerfile @@ -5,6 +5,15 @@ FROM golang:1.26-bookworm AS builder ARG VERSION=dev WORKDIR /src +# Fetch internal gitea-hosted Go modules (mcp-chassis) without going through +# proxy.golang.org and without HTTP→HTTPS surprises. The Gitea server returns +# http:// in its go-import meta tag (config-level limitation), so rewrite to +# https here and bypass the module proxy + sumdb. +RUN git config --global url."https://gitea.d-ma.be/".insteadOf "http://gitea.d-ma.be/" +ENV GOPRIVATE=gitea.d-ma.be +ENV GOPROXY=direct +ENV GOSUMDB=off + COPY go.mod go.sum ./ RUN go mod download