Go 1.28 entered its release freeze on November 25 and is expected in February 2027. Its draft notes list two changes that stop builds and several that shift HTTP and TLS behavior at run time.
The best preparation is a branch that bumps your go line, tested on the release candidate. Below are the cheaper rungs first, what each one catches, and a table for picking yours.
Table of Contents
- What breaks
- Good: go vet today
- Better: gotip or RC1
- Best: bump the go line
- Which rung fits
- This week
- FAQ
- Sources
What breaks in Go 1.28
These rows come from the draft release notes. They can still change before the release.
| Change | Fails at | Opt-out in the notes |
|---|---|---|
string(x) is valid only when x is a byte, a rune or an untyped rune constant |
Compile | None |
Generic type aliases need go 1.24 or later in go.mod |
Compile | Raise the go line |
crypto/ecdsa signing errors, and verify returns false, for hashes under 16 or over 64 bytes |
Run time | None |
crypto/x509 parsers reject trailing data in keys, certificates and extensions |
Run time | None |
http.Transport has a new pool; idle and per-host limits now count HTTP/1 and HTTP/2 together |
Run time | None |
ProxyFromEnvironment prefers http_proxy over HTTP_PROXY when both differ |
Run time | None |
Transport.CancelRequest does nothing |
Run time | httptransportcancelrequest=1 |
| TLS clients check a local UPKI revocation cache, for programs targeting Go 1.28 | Run time | tlsupki=0 |
TLS clients stop sending signature_algorithms_cert |
Run time | tlssigalgscert=1 |
The compile errors are easy. The run time rows are where I’d spend the testing budget.
Good: run go vet on Go 1.27 today
The string(int) ban lifts a vet check to the language. Vet has flagged these conversions since Go 1.15, according to issue #3939. So your current toolchain already finds them.
# flag string(int) conversions with the toolchain you have
go vet ./...
# list go.mod files whose go line is 1.23 or older
grep -rEn --include=go.mod '^go 1\.([0-9]|1[0-9]|2[0-3])(\.|$)' .
Fix each conversion by saying what you meant:
n := 65
_ = string(n) // compile error in Go 1.28
_ = string(rune(n)) // the fix vet suggests, if you meant a character
_ = strconv.Itoa(n) // if you meant the digits
The vet fix keeps today’s behavior. Use strconv when the code wanted a number, as Russ Cox advised in the issue.
For the grep hits, look for generic aliases such as type Set[T comparable] = map[T]struct{}. Modules with one need go 1.24 or later.
This rung costs minutes. It finds nothing in the run time rows.
Better: test with gotip or RC1
The freeze announcement puts RC1 tentatively in the week of December 10. Until then, gotip builds the development tree, which now only takes fixes for 1.28.
# build and test against the frozen 1.28 tree
go install golang.org/dl/gotip@latest
gotip download
gotip vet ./...
gotip test ./...
# once RC1 ships
go install golang.org/dl/go1.28rc1@latest
go1.28rc1 download
go1.28rc1 test ./...
Keep your go line as it is for this run. You are testing the new toolchain, and the notes list no opt-out for the ECDSA, x509, proxy and Transport changes. I’d expect those whatever your go.mod says.
Watch outbound HTTP closely. Concurrent requests to one host now share a single dial when HTTP/2 is negotiated. MaxConnsPerHost and the idle limits now apply to HTTP/2 connections consistently. A service tuned around the old counts can queue differently.
While you have the RC, try the new memory profile at /debug/pprof/memory. It breaks resident memory into heap, stacks, runtime metadata and non-Go memory. The heap profile alone often shows under half of RSS, the notes say.
# if the service exposes net/http/pprof on :6060
go1.28rc1 tool pprof http://localhost:6060/debug/pprof/memory
This rung costs a CI job. It misses defaults that only switch on with a 1.28 go line.
Best: bump the go line on a branch
Run-time defaults follow the go line in your main module, per the GODEBUG docs. A 1.28 toolchain building a go 1.27 module keeps 1.27 defaults where it can. UPKI revocation checking is the clearest case: it is on by default only for programs targeting 1.28.
Bump in two steps. First take the 1.28 language and keep the old defaults:
go 1.28
godebug (
default=go1.27
)
Then delete the godebug block and run the tests again. Whatever fails now is a default change. Pin only that setting, for example tlsupki=0, and fix the code before you drop the pin.
Check the hosts too. The revocation check turns on when a cache exists, and some distributions ship an updater such as upki fetch. Staging and production can behave differently if only one has the cache.
# Linux cache paths the TLS client looks for
ls ~/.cache/upki/revocation /var/cache/upki/revocation
Most GODEBUG settings count their effect. The runtime/metrics counter /godebug/non-default-behavior/<name>:events shows whether a pinned setting changes anything.
This rung costs a branch, a staging deploy and some review. It is the only one that shows what production will do.
Which rung fits your team
| Your situation | Rung | Why |
|---|---|---|
| Library maintainer | Good and Better | Your users pick the go line; you own the code and the toolchain run |
| Service with heavy outbound HTTP | Best | The pool and limit changes show up under real traffic |
| Service that does mTLS or verifies certificates | Best | UPKI, x509 parsing and signature changes live here |
| FIPS builds | Best | GOFIPS140=certified now selects module v1.26.0, CMVP certificate #5581 |
| Small CLI or internal tool | Good, then upgrade at release | Compile errors are the main risk |
What to do this week
- Tuesday, December 8: install Go 1.27.5 or 1.26.12. The Go team pre-announced six private standard library security fixes for that day.
- Rebuild and redeploy every binary after that update. Library bumps don’t patch the toolchain, as the GO-2026-6859 post shows.
- Run
go vet ./...and thego.modgrep on your main repos. - Add a nightly
gotip test ./...job, then switch it to RC1 when it ships. - Before February, open the
go 1.28branch withdefault=go1.27and remove the pin step by step.
FAQ
When is Go 1.28 released?
The draft notes expect a February 2027 release. RC1 is tentatively scheduled for the week of December 10. The freeze began November 25, so only fixes land until then.
Does string(int) stop compiling in Go 1.28?
Yes. Converting an integer to a string is valid only for byte, rune or an untyped rune constant. Use string(rune(x)) for a character or strconv.Itoa(x) for digits.
Why does my go.mod go line matter for the upgrade?
GODEBUG defaults follow it. A 1.28 toolchain keeps older defaults for a module declaring an older version. Changes without a GODEBUG setting apply either way.
Why does my HTTP client open fewer connections on Go 1.28?
The Transport has a rewritten pool. Concurrent requests to one host coalesce onto a single dial when HTTP/2 is negotiated. Connection limits now count HTTP/1 and HTTP/2 together.
How do I turn off the new TLS revocation check?
Set tlsupki=0 in GODEBUG, or set Disabled in the new tls.Config.UPKIRevocation field. Programs targeting Go 1.27 or earlier already default to off.
Should I wait for Go 1.28 instead of patching on December 8?
No. Go 1.27.5 and 1.26.12 carry six standard library security fixes. Patch first and test 1.28 on a branch.
Sources and related posts
- Go 1.28 draft release notes
- Go 1.28 release freeze has started, golang-dev
- Go 1.27.5 and Go 1.26.12 security pre-announcement, golang-announce
- Go, Backwards Compatibility, and GODEBUG
- Issue #3939: remove string(int)
- Managing Go installations and installing gotip
Related on this site: