Update go version

This commit is contained in:
dwrz
2026-08-21 10:23:37 +00:00
parent 78248a6145
commit c2e2d9ea02
466 changed files with 67766 additions and 2881 deletions

View File

@@ -19,6 +19,7 @@ import (
"runtime"
"runtime/pprof"
"strings"
"testing"
"golang.org/x/telemetry/counter"
"golang.org/x/tools/internal/gocommand"
@@ -199,7 +200,8 @@ func walkDir(path string) {
}
func main() {
// is anyone using this command?
// Measure how many people still use goimports.
// (See https://go.dev/issue/78671 for one.)
counter.Open()
counter.Inc("tools/cmd:goimports")
runtime.GOMAXPROCS(runtime.NumCPU())
@@ -208,7 +210,9 @@ func main() {
// so that it can use defer and have them
// run before the exit.
gofmtMain()
os.Exit(exitCode)
if !testing.Testing() {
os.Exit(exitCode)
}
}
// parseFlags parses command line flags and returns the paths to process.