-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2025 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
//go:build go1.23 | ||
|
||
//go:debug gotypesalias=1 | ||
|
||
package main | ||
|
||
// Materialize aliases whenever the go toolchain version is after 1.23 (#69772). | ||
// Remove this file after go.mod >= 1.23 (which implies gotypesalias=1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2025 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
//go:build go1.23 | ||
|
||
//go:debug gotypesalias=1 | ||
|
||
package main | ||
|
||
// Materialize aliases whenever the go toolchain version is after 1.23 (#69772). | ||
// Remove this file after go.mod >= 1.23 (which implies gotypesalias=1). |