Skip to content

Update to Go 1.27 - #460

Merged
edmorley merged 3 commits into
mainfrom
edmorley/go-1.27
Oct 8, 2026
Merged

edmorley merged 3 commits into
mainfrom
edmorley/go-1.27

Conversation

@edmorley

@edmorley edmorley commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Updates to Go 1.27, and derives the Go version from the go directive in go.mod, so it only needs updating in one place:

  • The Dockerfile now takes the major.minor of the go directive as a GO_VERSION build arg, passed by the action-*.yml workflows.
  • The unit tests pass it to setup-go with check-latest. Using only the major.minor means both get the latest patch release, rather than the exact (and often outdated) patch version in the go directive.
  • The action-*.yml workflows now also run when the Dockerfile, go.mod/go.sum or the workflow itself change, so changes like these (and Dependabot's Go dependency PRs) test-build the images.

@edmorley edmorley added type:dependency-upgrade A dependency upgrade semver:minor A change requiring a minor version bump labels Oct 5, 2026
@edmorley edmorley self-assigned this Oct 5, 2026
@edmorley edmorley added type:dependency-upgrade A dependency upgrade semver:minor A change requiring a minor version bump labels Oct 5, 2026
The `action-*.yml` workflows only ran when an action's source or
`internal/` changed, so changes to the `Dockerfile`, `go.mod`/`go.sum`
(such as Dependabot's Go dependency PRs) or the workflow itself never
test-built the images.

Signed-off-by: Ed Morley <emorley@salesforce.com>
So the Go version only needs updating in one place. The `Dockerfile`
now takes the major.minor of the `go` directive as a `GO_VERSION` build
arg, and the unit tests pass it to `setup-go` with `check-latest`, so
both use the latest patch release rather than the exact (and often
outdated) patch version in the `go` directive.

Signed-off-by: Ed Morley <emorley@salesforce.com>
Signed-off-by: Ed Morley <emorley@salesforce.com>
@edmorley
edmorley marked this pull request as ready for review October 5, 2026 14:50
@edmorley
edmorley requested a review from a team as a code owner October 5, 2026 14:50
@edmorley
edmorley enabled auto-merge (squash) October 5, 2026 14:50
@edmorley
edmorley disabled auto-merge October 8, 2026 10:13
@edmorley
edmorley merged commit a96fc97 into main Oct 8, 2026
12 checks passed
@edmorley
edmorley deleted the edmorley/go-1.27 branch October 8, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:minor A change requiring a minor version bump type:dependency-upgrade A dependency upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants