Skip to content

fix: build releases with Go 1.27 - #184

Merged
alnr merged 2 commits into
masterfrom
releaser/go-1.27
Nov 13, 2026
Merged

alnr merged 2 commits into
masterfrom
releaser/go-1.27

Conversation

@alnr

@alnr alnr commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

ory/cli's v1.3.4-pre.0 release fails inside the goreleaser container (run):

⨯ release failed  error=hook failed: ... cmd=go output=go: go.mod requires go >= 1.27 (running go 1.26.0; GOTOOLCHAIN=local)

The pinned oryd/xgoreleaser:1.26.0-2.14.1 image ships Go 1.26.0 with GOTOOLCHAIN=local, and ory/cli's go.mod now says go 1.27.

Changes

Checked locally against the pinned digest (linux/amd64):

  • Go 1.27.4 and goreleaser 2.14.1.
  • The C cross-compilers build.tmpl.yml uses are present: x86_64-linux-gnu-gcc, x86_64-linux-musl-gcc, aarch64-linux-musl-gcc, o64-clang.
  • cosign and cyclonedx-gomod are present.
  • go mod download succeeds on ory/cli.

All repos using the releaser build with Go 1.27.4 after this, which is fine for modules on older go lines.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DUBUDqE7fMHh9gNQ3mFxhj

The pinned xgoreleaser image ships Go 1.26.0 with GOTOOLCHAIN=local, so
goreleaser's `go mod download` hook fails for modules that declare
go 1.27 ("go.mod requires go >= 1.27"). ory/cli is the first to hit it.

Pass GOTOOLCHAIN=go1.27.4+auto into the container so it fetches and
uses Go 1.27.4, or a newer toolchain if a go.mod requires one. Bump the
runner's setup-go to 1.27 to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DUBUDqE7fMHh9gNQ3mFxhj
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: af2730cf-e5c6-42f8-a159-6559ffa67eb9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Pin oryd/xgoreleaser:1.27.4-2.14.1 by its multi-arch index digest. It
ships Go 1.27.4, so the GOTOOLCHAIN override that fetched a newer
toolchain into the 1.26.0 image is no longer needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DUBUDqE7fMHh9gNQ3mFxhj
@alnr
alnr merged commit 028d341 into master Nov 13, 2026
6 checks passed
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