Skip to content

Commit d20b7c6

Browse files
TMHSDigitalclaude
andcommitted
fix(docker): copy every top-level Go file into the image build
The Dockerfile copied only main.go, so the image build broke once the main package gained main_summary.go in 239de37 ("undefined: buildSummary"). Copy *.go instead; _test.go files are ignored by go build. Also fix the stale go.mod version in the builder comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d985145 commit d20b7c6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Builder uses a current, supported Go toolchain (go.mod 1.24.2 is only the
1+
# Builder uses a current, supported Go toolchain (go.mod 1.26.0 is only the
22
# minimum); Dependabot keeps both digests fresh. It runs on the build host's
33
# platform and cross-compiles for the target, so multi-arch images (#40) need
44
# no QEMU emulation.
@@ -18,7 +18,9 @@ COPY go.mod go.sum ./
1818
RUN go mod download
1919

2020
# Copy source code
21-
COPY main.go ./
21+
# Every top-level .go file: main is split across several (main.go,
22+
# main_summary.go, ...); _test.go files are ignored by go build.
23+
COPY *.go ./
2224
COPY internal/ ./internal/
2325

2426
# Build the binary with optimizations

0 commit comments

Comments
 (0)