From 674c75f5eb56b941f96594ad3ff902fce0ce41da Mon Sep 17 00:00:00 2001 From: agent-company Date: Mon, 20 Apr 2026 15:06:53 +0000 Subject: [PATCH] chore: add go.sum to version control and copy in Dockerfile Add empty go.sum file (no external dependencies yet) and update the Dockerfile build stage to COPY go.sum alongside go.mod for reproducible module downloads. This ensures the Docker build does not fail when Go requires go.sum to be present. Closes leeworks-agents/gitea-mobile#203 Closes leeworks-agents/gitea-mobile#180 Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 2 +- go.sum | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 go.sum diff --git a/Dockerfile b/Dockerfile index 6b7ad37..029e1ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Build FROM golang:1.22-alpine AS builder WORKDIR /app -COPY go.mod ./ +COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /gitea-mobile ./cmd/server diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29