Skip to content

chore(go): upgrade to 1.26.10 - #100

Merged
appleboy merged 2 commits into
masterfrom
chore/go-1.26.9
Oct 23, 2026
Merged

appleboy merged 2 commits into
masterfrom
chore/go-1.26.9

Conversation

@appleboy

@appleboy appleboy commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Current update: Go 1.26.10

Raise the minimum Go version to 1.26.10. Retain the existing changes described in the historical section below.

Current verification

Check out chore/go-1.26.9 at 2b104e585669fb36d5516d1d96fae9e40935858a in appleboy/drone-lambda and run from the repository root. Requires Go 1.26.10, Git, network access and, for SSH/SCP fixtures, Docker running Linux containers. Telegram service integration tests require credentials and are skipped locally; do not provide production credentials.

GOTOOLCHAIN=go1.26.10 go test -race -count=1 -timeout 300s ./...
GOTOOLCHAIN=go1.26.10 go vet ./...
GOTOOLCHAIN=go1.26.10 go build -o /tmp/drone-lambda-go12610 .
GOBIN=/tmp/drone-go-lint GOTOOLCHAIN=go1.26.10 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2
/tmp/drone-go-lint/golangci-lint run --timeout 5m
git diff --check
  • Passed: test command, vet, build, CI-compatible Go lint and whitespace check on the current Go 1.26.10 change; all exit 0.
  • Passed: inspect go.mod for go 1.26.10. Running GOTOOLCHAIN=go1.26.10 go version must report go1.26.10. Existing plugin behavior is covered by the test command above.
  • Current-head security verification (2026-10-23):
Check Result
Trivy Repository Scan FAILURE
Analyze (go) SUCCESS
Trivy Image Scan FAILURE

Do not merge yet: repository and image Trivy scans report HIGH CVE-2026-56851 in golang.org/x/text v0.39.0; scanner reports fixed version v0.41.0. The Docker build workflow security gate also fails. This dependency remediation is outstanding; upgrading Go alone does not resolve it.

  • Not run locally: full multi-platform release builds and cloud deployments. GitHub CI runs its configured Go matrix.
  • Cleanup: remove /tmp/drone-lambda-go12610 and optional /tmp/drone-go-lint; fixture containers remove themselves and use disposable repository copies.

Current authorship and risk

  • AI used: Codex. Current AI-authored files: go.mod. Prior AI-authored files are listed below.
  • Human line-by-line reviewed: None — not yet reviewed by a human.
  • Classification: Leaf, repository-local toolchain configuration; request one reviewer.
  • Scope: update all repository Go version pins to 1.26.10 and verify existing behavior and security gates. No issue identifiers supplied.
  • Risk: compiler/runtime compatibility and higher minimum source-build toolchain. Revert 2b104e585669fb36d5516d1d96fae9e40935858a to undo this incremental upgrade while retaining preceding work.
  • Security: no secrets added; no new external interface. Security gates remain enabled.
Historical PR scope and verification (before the Go 1.26.10 update)

Summary

Raise the minimum Go toolchain to 1.26.9 and replace the Go 1.25 CI lane with Go 1.27. CI now tests Go 1.26 and 1.27. Dependencies and application behavior are unchanged.

Verification

Checkout chore/go-1.26.9 in appleboy/drone-lambda and run from the repository root. Prerequisites: Go with toolchain downloads enabled, make, network access, actionlint 1.7.12 and golangci-lint 2.12.2 (built with Go 1.26.9).

GOTOOLCHAIN=go1.26.9 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2
GOTOOLCHAIN=go1.26.9 make test
GOTOOLCHAIN=go1.27.2 make test
GOTOOLCHAIN=go1.26.9 GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /tmp/drone-lambda-1.26.9 .
GOTOOLCHAIN=go1.27.2 GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /tmp/drone-lambda-1.27.2 .
GOTOOLCHAIN=go1.26.9 golangci-lint run --timeout 5m
actionlint -shellcheck= -pyflakes=
git diff --check
  • Passed: full test suite and Linux/amd64 builds with both Go 1.26.9 and Go 1.27.2; every command exited 0 on 2026-10-10.
  • Passed: Go lint, workflow syntax and whitespace checks, exit 0.
  • Passed: inspect go.mod for go 1.26.9 and the workflow matrix for quoted 1.26 and 1.27. This confirms the minimum toolchain and both intended CI lanes; the two local test runs verify compatibility with those release lines.
  • Not run locally: GitHub-hosted execution; the PR starts the updated matrix for CI confirmation.
  • Cleanup: remove the two /tmp/drone-lambda-* test binaries when finished; test coverage output is ignored by Git.

AI authorship and classification

  • AI was used: Codex.
  • AI-authored files: .github/workflows/lint.yml, go.mod.
  • Human line-by-line reviewed: None — not yet reviewed by a human.
  • Leaf: repository-local toolchain and test matrix configuration. Recommend one reviewer.

Scope, risk and rollback

Goal: align this plugin with Go 1.26.9 and validate Go 1.26 / 1.27. Risk: source builds now require Go 1.26.9 or newer; compiler/runtime changes may expose platform-specific behavior. Review the Go directive and matrix; revert the upgrade commit to roll back. No secrets or external interfaces changed. Related issues: none supplied.

- Raise the minimum Go toolchain to 1.26.9
- Test Go 1.26 and 1.27 in CI
- Raise the minimum Go toolchain to 1.26.10
@appleboy appleboy changed the title chore(go): upgrade to 1.26.9 chore(go): upgrade to 1.26.10 Oct 23, 2026
@appleboy
appleboy merged commit eeb043d into master Oct 23, 2026
9 of 12 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