Skip to content

fix: repin the builder base to Go 1.26.6 and build images in CI - #70

Merged
blakebauman merged 1 commit into
mainfrom
fix/builder-base-go-1266
Aug 14, 2026
Merged

blakebauman merged 1 commit into
mainfrom
fix/builder-base-go-1266

Conversation

@blakebauman

Copy link
Copy Markdown
Member

The bug

go.mod has required Go 1.26.6 since #64. All three Dockerfiles pinned golang:1.26@sha256:7caba52…, a digest holding 1.26.5, and the images set GOTOOLCHAIN=local — so they cannot fetch a newer toolchain than they ship:

go: go.mod requires go >= 1.26.6 (running go 1.26.5; GOTOOLCHAIN=local)
ERROR: failed to solve: process "/bin/sh -c go mod download" did not complete successfully

Why nothing caught it

The release workflow's image job is if: github.event_name == 'push' on tags. CI never builds an image, so a Dockerfile that cannot build sat on main through two green merges and failed at the single most expensive moment — after v1.12.1's tag was pushed, with binaries and chart already published. That left a published Helm chart (0.2.2) whose appVersion names ghcr.io/fold-run/fold:v1.12.1, an image that does not exist, so a fresh helm install gets ImagePullBackOff.

The fix

  • The tag names the patch, not the minor — golang:1.26.6@sha256:640a234…. Pinned as golang:1.26 the line read as current while the digest held an older patch; naming the patch means a go.mod bump makes it visibly stale instead of silently wrong. The rationale is a comment in fold.Dockerfile, referenced from the other two.
  • CI builds all three images without pushing, so this skew fails on the PR. Single-platform on purpose: the gate is "does it build", and cross-building both arches per PR buys nothing the release job does not already prove.

Verification

All three images built locally against the new pin, and the stamped version threads through:

$ docker build -f deploy/docker/fold.Dockerfile --build-arg VERSION=v1.12.2 .
$ docker run --rm <image> --version
fold v1.12.2

The new CI image job is itself the check on this PR — it is green here and would have been red on #64.

🤖 Generated with Claude Code

go.mod has required Go 1.26.6 since #64, but all three Dockerfiles pinned a
golang:1.26 digest holding 1.26.5, and the images set GOTOOLCHAIN=local so
they cannot fetch a newer toolchain than they ship:

    go: go.mod requires go >= 1.26.6 (running go 1.26.5; GOTOOLCHAIN=local)

Nothing caught it because the release workflow's image job only runs on a
tag push. The broken build sat on main through two green merges and failed
at the worst moment — after v1.12.1's tag, with the binaries and the Helm
chart already published, leaving a chart whose appVersion names an image
that does not exist.

The tag now names the patch rather than the minor, so a go.mod bump makes
this line visibly stale instead of silently wrong, and CI builds all three
images without pushing so the skew fails on the PR.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@blakebauman
blakebauman merged commit 944b549 into main Aug 14, 2026
8 checks passed
@blakebauman
blakebauman deleted the fix/builder-base-go-1266 branch August 14, 2026 01:45
blakebauman added a commit that referenced this pull request Aug 14, 2026
v1.12.1's image job failed on a builder base pinned below the Go version
go.mod requires, after the binaries and chart had already published. The
Dockerfile fix landed in #70; this dates the changelog entry and bumps the
chart to 0.2.3 / appVersion v1.12.2, so the published chart names an image
that exists.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.

1 participant