Skip to content

all: audit x/ repos for gotypesalias settings #69772

Closed
@timothy-king

Description

@timothy-king

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:

  1. 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.
  2. 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.)
  3. Audit each //go:debug gotypesalias=0 for what to do. A good default action is to update these packages to enable GODEBUG=gotypesalias=1 when built with >=1.23 toolchains (see https://go.dev/cl/617636).

cc @aclements , @cherrymui , @findleyr, @griesemer , @adonovan , @dmitshur

Metadata

Metadata

Assignees

Labels

NeedsFixThe path to resolution is known, but the work has not been done.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions