-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
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=0for what to do. A good default action is to update these packages to enableGODEBUG=gotypesalias=1when built with >=1.23 toolchains (see https://go.dev/cl/617636).
cc @aclements , @cherrymui , @findleyr, @griesemer , @adonovan , @dmitshur
dmitshur
Metadata
Metadata
Assignees
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.