Skip to content

Fix CI failures on master caused by outdated Go versions - #594

Open
goccy wants to merge 1 commit into
masterfrom
fix/ci-go-versions
Open

Fix CI failures on master caused by outdated Go versions#594
goccy wants to merge 1 commit into
masterfrom
fix/ci-go-versions

Conversation

@goccy

@goccy goccy commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Fixes the two CI failures on master that surfaced after #567 landed:

Build on limited environment

docker-compose.yml pinned golang:1.18, which cannot compile atomic.Pointer (added in Go 1.19, the minimum version declared in go.mod):

internal/encoder/compiler.go:54:34: undefined: atomic.Pointer
internal/decoder/compile.go:40:28: undefined: atomic.Pointer

Bumped the image to golang:1.19 (verified locally that go test -c . builds with go1.19.13) and removed the obsolete version attribute.

Test (macos-latest, 1.19 / 1.20 / 1.21)

dyld[5272]: missing LC_UUID load command
signal: abort trap

Binaries built by Go < 1.22 lack the LC_UUID load command and are killed by dyld on current macos-latest runners, so none of the matrix versions can run there anymore. This is an environment issue unrelated to #567 (it also failed on the previous pull_request run in 2025-11). macOS now runs only the latest stable Go via matrix exclude, while 1.19–1.21 coverage is kept on Linux and Windows.

Also added stable to the matrix (previously nothing newer than 1.21 was tested) and set fail-fast: false so one broken combination no longer cancels the rest of the matrix.

🤖 Generated with Claude Code

Two failures after #567 landed:

- "Build on limited environment" uses the golang:1.18 image, which
  cannot compile atomic.Pointer (added in Go 1.19, the minimum version
  declared in go.mod). Bump the image to golang:1.19 and drop the
  obsolete 'version' attribute from docker-compose.yml.

- "Test (macos-latest, *)" aborts with 'dyld: missing LC_UUID load
  command'. Binaries built by Go < 1.22 lack the LC_UUID load command
  and are rejected by dyld on current macos-latest runners. Run only
  the latest stable Go on macOS and keep 1.19-1.21 coverage on Linux
  and Windows. Also add 'stable' to the matrix and disable fail-fast
  so one broken combination no longer cancels the rest.

Co-Authored-By: Claude Fable 5 <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.
✅ Project coverage is 78.52%. Comparing base (f1e7554) to head (3abcb92).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #594   +/-   ##
=======================================
  Coverage   78.52%   78.52%           
=======================================
  Files          53       53           
  Lines       16717    16717           
=======================================
  Hits        13127    13127           
  Misses       2958     2958           
  Partials      632      632           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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