Closed
Description
This item is to track auditing and then updating all of the x/ repos for correctly setting the gotypesalias
GODEBUG setting in preparation for 1.24. main
packages in 1.22 modules (e.g. x/tools/cmd/callgraph) will default to the value of gotypesalias=0
. If these packages use go/types
and are built with a 1.24 toolchain, they will have gotypesalias=0
. Such binaries will not create the *types.Alias
value that is required to create an alias with type parameters (#46477). Effectively any such binaries would be unable to properly support 1.24 despite using the 1.24 compiler and standard library.
My proposed plan is to:
- Find all of the modules in the x/ repos, find all of the main packages within the modules that are <=1.22, and among these main packages determine which transitively import go/types.
- For all of these packages explicitly label (or comment on) their current status explicitly
//go:debug gotypesalias=0
. (See https://go.dev/cl/617095 for an example.) - Audit each
//go:debug gotypesalias=0
for what to do. A good default action is to update these packages to enableGODEBUG=gotypesalias=1
when built with >=1.23 toolchains (see https://go.dev/cl/617636).
cc @aclements , @cherrymui , @findleyr, @griesemer , @adonovan , @dmitshur