Skip to content

Commit

Permalink
cmd/govulncheck: set gotypesalias=1 when using >=1.23 toolchain
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
timothy-king committed Nov 13, 2024
1 parent d0fc691 commit 0481857
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/govulncheck/gotypesalias.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2024 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).

0 comments on commit 0481857

Please sign in to comment.