| commit | e0ece0dbea4cee280b7a2a608bac3bb791c5dd2e | [log] [tgz] |
|---|---|---|
| author | Jonathan Amsterdam <jba@google.com> | Tue Jan 28 09:48:12 2025 -0500 |
| committer | Jonathan Amsterdam <jba@google.com> | Tue Jan 28 10:24:59 2025 -0800 |
| tree | 7c7db6e2f39f7255197dacf4fb272cfa443e2242 | |
| parent | 3edf0e91c1ae02206dac8ccdb294ae0efd97af60 [diff] |
cmd/{apidiff,gorelease}: use types.Alias when >= 1.23
This module's go.mod file specifies go1.22.
These two programs use go/types, which materializes aliases as
type.Alias when the go version is >= 1.23.
Force that materialization with toolchains >= 1.23 despite what the
go.mod says.
Fixes golang/go#70695.
Change-Id: I9401d7f80880fdf59600592baf93bb4c8b7c76ec
Reviewed-on: https://go-review.googlesource.com/c/exp/+/645015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
This subrepository holds experimental and deprecated (in the old directory) packages.
The idea for this subrepository originated as the pkg/exp directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.