Skip to content

Commit 0481857

Browse files
committed
cmd/govulncheck: set gotypesalias=1 when using >=1.23 toolchain
Set gotypesalias=1 when using >=1.23 toolchain on all of the main packages in x/tools that use go/types. This effectively upgrades commit https://go.dev/cl/617095. For golang/go#69772 Change-Id: I9f3e64d348f6bffc75321a08145fde07fb4024a6 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/627715 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Zvonimir Pavlinovic <[email protected]>
1 parent d0fc691 commit 0481857

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmd/govulncheck/gotypesalias.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2024 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
//go:build go1.23
6+
7+
//go:debug gotypesalias=1
8+
9+
package main
10+
11+
// Materialize aliases whenever the go toolchain version is after 1.23 (#69772).
12+
// Remove this file after go.mod >= 1.23 (which implies gotypesalias=1).

0 commit comments

Comments
 (0)