dev: Update Go to 1.27 and update dependencies - #8019
Merged
Conversation
Bump the go directive and toolchain to 1.27 in the root and tools modules, and update the dependencies of both. automemlimit v1.0.0 removes SetGoMemLimit. Replace it with the equivalent Set(WithRatio(0.9)), which keeps the same FromCgroup provider and ratio. Hold html2text at its current version: newer releases import github.com/olekukonko/tablewriter/tw, which does not exist in the tablewriter v0.0.5 that the replace directive pins. Bump golangci-lint to v2.13.2 for Go 1.27 support.
nicholaspcr
marked this pull request as ready for review
September 2, 2026 17:22
KrishnaIyer
approved these changes
Sep 3, 2026
halimi
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bump the go directive and toolchain to 1.27 in the root and tools modules, and update the dependencies of both.
Changes
goto1.27andtoolchaintogo1.27.0ingo.modandtools/go.mod.automemlimitv1.0.0 removesSetGoMemLimit. Replace it with the equivalentSet(WithRatio(0.9)), which keeps the sameFromCgroupprovider and ratio.html2textat its current version: newer releases importgithub.com/olekukonko/tablewriter/tw, which does not exist in thetablewriterv0.0.5 that the replace directive pins.golangci-lintto v2.13.2 for Go 1.27 support.The existing replace directives are untouched, so
redisstays at v9.18.0,bunat v1.2.15,gocloud.devat v0.41.0,tablewriterat v0.0.5 andmapstructureat the TTI fork.Testing
Steps
go build ./...in the repository root and intools.go vet ./pkg/... ./cmd/....go test ./pkg/...with the usual Redis and CockroachDB dependencies running..github/actions/install-go-and-depsreadsgo-version-file: go.mod) and that the lint job passes.Results
go build ./...is clean in both modules.go vet ./pkg/... ./cmd/...reports only the three pre-existing findings inpkg/rpcmiddleware/rpcretry/client_interceptors_test.goandpkg/unique/unique_test.go, which are unrelated to this change. Targeted tests forpkg/email,pkg/redisandpkg/configpass locally. The full test suite has not been run locally because it requires Redis and CockroachDB; CI covers it.Regressions
This touches every Go package by way of the dependency graph, so the full CI test suite is the regression check.
The only behavior change outside the module files is
GOMEMLIMITconfiguration incmd/ttn-lw-stack/commands/root.go.memlimit.Set(memlimit.WithRatio(0.9))is the v1.0.0 equivalent ofSetGoMemLimit(0.9): same defaultFromCgroupprovider, same ratio. To verify, run the stack in a container with a memory limit and confirm thatGOMEMLIMITis set to 90% of the cgroup limit and that no "Failed to set GOMEMLIMIT" log line appears.Notes for Reviewers
The
html2texthold is the one deliberate omission from the dependency update. Thetablewriterreplace directive pins v0.0.5, which has notwsubpackage, so any newerhtml2textfails to buildpkg/email. Removing that replace directive is a separate change with a wider blast radius.Checklist
README.mdfor the chosen target branch.go.mod.CHANGELOG.md. No entry added, consistent with previous Go and dependency updates.CONTRIBUTING.md, there are no fixup commits left.