Skip to content

fix(docker): bump builder image to golang:1.26.4-alpine - #35

Merged
filipi86 merged 1 commit into
mainfrom
fix/dockerfile-go-1.26.4
Jun 23, 2026
Merged

fix(docker): bump builder image to golang:1.26.4-alpine#35
filipi86 merged 1 commit into
mainfrom
fix/dockerfile-go-1.26.4

Conversation

@filipi86

Copy link
Copy Markdown
Owner

Problem

The Build & Push Docker job fails on main:

go: go.mod requires go >= 1.26.4 (running go 1.25.9; GOTOOLCHAIN=local)
ERROR: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1

Cause

The toolchain bump in #32 updated go.mod (go 1.26.4) and the setup-go pins in the workflows, but the Dockerfile base image stayed at golang:1.25.9-alpine. The sed in that PR targeted golang:1.25.10-alpine (assuming #28 had bumped it), but the Dockerfile was actually still 1.25.9, so it was left behind. Under GOTOOLCHAIN=local the image refuses to auto-upgrade, breaking go mod download.

Fix

Bump the builder base image to golang:1.26.4-alpine, matching go.mod and the workflow go-version pins. The other jobs (Build & Test, Lint, Security Scan) already pass because they use actions/setup-go@v6 with go-version: '1.26.4'.

🤖 Generated with Claude Code

The Docker build was still on golang:1.25.9-alpine while go.mod requires
go >= 1.26.4. With GOTOOLCHAIN=local the builder refuses to auto-upgrade, so
`go mod download` fails:

  go: go.mod requires go >= 1.26.4 (running go 1.25.9; GOTOOLCHAIN=local)

The toolchain bump in #32 updated go.mod and the setup-go workflow pins but
missed the Dockerfile (its base was 1.25.9, not the 1.25.10 the sed targeted),
so the Build & Push Docker job broke. This realigns the image with the rest of
the toolchain.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@filipi86
filipi86 merged commit 8edbf47 into main Jun 23, 2026
8 checks passed
@filipi86
filipi86 deleted the fix/dockerfile-go-1.26.4 branch June 23, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants