Skip to content

Commit a24facf

Browse files
timothy-kingGo LUCI
authored andcommitted
all: set gotypesalias=0 explicitly
Set GODEBUG variable gotypesalias to off in all main packages in x/tools that use go/types. This is a no-op as the x/tools go.mod is uses version 1.22, which disables gotypesalias in main packages and tests by default. Change-Id: I1593cd63ec018e230e126d990530bd59fb9a96cf Reviewed-on: https://go-review.googlesource.com/c/tools/+/617095 LUCI-TryBot-Result: Go LUCI <[email protected]> Commit-Queue: Tim King <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent ce2a33e commit a24facf

File tree

25 files changed

+71
-0
lines changed

25 files changed

+71
-0
lines changed

cmd/bundle/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
// Update all bundles in the standard library:
6969
//
7070
// go generate -run bundle std
71+
72+
//go:debug gotypesalias=0
73+
7174
package main
7275

7376
import (

cmd/callgraph/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
// callgraph: a tool for reporting the call graph of a Go program.
66
// See Usage for details, or run with -help.
7+
8+
//go:debug gotypesalias=0
9+
710
package main // import "golang.org/x/tools/cmd/callgraph"
811

912
// TODO(adonovan):

cmd/deadcode/deadcode.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:debug gotypesalias=0
6+
57
package main
68

79
import (

cmd/eg/eg.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// The eg command performs example-based refactoring.
66
// For documentation, run the command, or see Help in
77
// golang.org/x/tools/refactor/eg.
8+
9+
//go:debug gotypesalias=0
10+
811
package main // import "golang.org/x/tools/cmd/eg"
912

1013
import (

cmd/godex/godex.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:debug gotypesalias=0
6+
57
package main
68

79
import (

cmd/godoc/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// http://godoc/pkg/compress/zlib)
1515
//
1616

17+
//go:debug gotypesalias=0
18+
1719
package main
1820

1921
import (

cmd/goimports/goimports.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:debug gotypesalias=0
6+
57
package main
68

79
import (

cmd/gomvpkg/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
// The gomvpkg command moves go packages, updating import declarations.
66
// See the -help message or Usage constant for details.
7+
8+
//go:debug gotypesalias=0
9+
710
package main
811

912
import (

cmd/gotype/gotype.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ To verify the output of a pipe:
8585
8686
echo "package foo" | gotype
8787
*/
88+
89+
//go:debug gotypesalias=0
90+
8891
package main
8992

9093
import (

cmd/ssadump/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// license that can be found in the LICENSE file.
44

55
// ssadump: a tool for displaying and interpreting the SSA form of Go programs.
6+
7+
//go:debug gotypesalias=0
8+
69
package main // import "golang.org/x/tools/cmd/ssadump"
710

811
import (

0 commit comments

Comments
 (0)