Skip to content

Commit 94db710

Browse files
committed
all: upgrade go directive to at least 1.23.0 [generated]
By now Go 1.24.0 has been released, and Go 1.22 is no longer supported per the Go Release Policy (https://go.dev/doc/devel/release#policy). For golang/go#69095. [git-generate] (cd . && go get [email protected] && go mod tidy && go fix ./... && go mod edit -toolchain=none) (cd gopls/doc/assets && go get [email protected] && go mod tidy && go fix ./... && go mod edit -toolchain=none) (cd gopls && echo 'skipping because it already has go1.23.4 >= go1.23.0, nothing to do') Change-Id: I37dad9abd1457a8a8aa940809b7ee6664fba006d Reviewed-on: https://go-review.googlesource.com/c/tools/+/649321 Auto-Submit: Gopher Robot <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent ead62e9 commit 94db710

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2
-55
lines changed

Diff for: cmd/callgraph/main_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android && go1.11
8-
// +build !android,go1.11
98

109
package main
1110

Diff for: cmd/fiximports/main_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package main
1110

Diff for: cmd/godex/isAlias18.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !go1.9
6-
// +build !go1.9
76

87
package main
98

Diff for: cmd/godex/isAlias19.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.9
6-
// +build go1.9
76

87
package main
98

Diff for: cmd/goimports/goimports_gc.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gc
6-
// +build gc
76

87
package main
98

Diff for: cmd/goimports/goimports_not_gc.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gc
6-
// +build !gc
76

87
package main
98

Diff for: cmd/gotype/sizesFor18.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !go1.9
6-
// +build !go1.9
76

87
// This file contains a copy of the implementation of types.SizesFor
98
// since this function is not available in go/types before Go 1.9.

Diff for: cmd/gotype/sizesFor19.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.9
6-
// +build go1.9
76

87
package main
98

Diff for: cmd/splitdwarf/splitdwarf.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd
6-
// +build aix darwin dragonfly freebsd linux netbsd openbsd
76

87
/*
98
Splitdwarf uncompresses and copies the DWARF segment of a Mach-O

Diff for: cmd/stress/stress.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build unix || aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
6-
// +build unix aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
76

87
// The stress utility is intended for catching sporadic failures.
98
// It runs a given process in parallel in a loop and collects any failures.

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module golang.org/x/tools
22

3-
go 1.22.0 // => default GODEBUG has gotypesalias=0
3+
go 1.23.0 // => default GODEBUG has gotypesalias=0
44

55
require (
66
github.com/google/go-cmp v0.6.0

Diff for: go/analysis/multichecker/multichecker_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.12
6-
// +build go1.12
76

87
package multichecker_test
98

Diff for: go/analysis/passes/errorsas/errorsas_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.13
6-
// +build go1.13
76

87
package errorsas_test
98

Diff for: go/analysis/passes/stdversion/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
package main
98

Diff for: go/analysis/unitchecker/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// This file provides an example command for static checkers
98
// conforming to the golang.org/x/tools/go/analysis API.

Diff for: go/buildutil/allpackages_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Incomplete source tree on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package buildutil_test
1110

Diff for: go/callgraph/cha/cha_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package cha_test
1110

Diff for: go/callgraph/rta/rta_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package rta_test
1110

Diff for: go/callgraph/vta/internal/trie/bits_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.13
6-
// +build go1.13
76

87
package trie
98

Diff for: go/callgraph/vta/internal/trie/trie_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.13
6-
// +build go1.13
76

87
package trie
98

Diff for: go/gcexportdata/example_test.go

-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.7 && gc && !android && !ios && (unix || aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || plan9 || windows)
6-
// +build go1.7
7-
// +build gc
8-
// +build !android
9-
// +build !ios
10-
// +build unix aix darwin dragonfly freebsd linux netbsd openbsd solaris plan9 windows
116

127
package gcexportdata_test
138

Diff for: go/gcexportdata/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// The gcexportdata command is a diagnostic tool that displays the
98
// contents of gc export data files.

Diff for: go/internal/gccgoimporter/newInterface10.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !go1.11
6-
// +build !go1.11
76

87
package gccgoimporter
98

Diff for: go/internal/gccgoimporter/newInterface11.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.11
6-
// +build go1.11
76

87
package gccgoimporter
98

Diff for: go/loader/loader_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package loader_test
1110

Diff for: go/ssa/example_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !android && !ios && (unix || aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || plan9 || windows)
6-
// +build !android
7-
// +build !ios
8-
// +build unix aix darwin dragonfly freebsd linux netbsd openbsd solaris plan9 windows
96

107
package ssa_test
118

Diff for: go/ssa/ssautil/switch_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package ssautil_test
1110

Diff for: go/ssa/stdlib_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Incomplete source tree on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package ssa_test
1110

Diff for: godoc/godoc17_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.7
6-
// +build go1.7
76

87
package godoc
98

Diff for: godoc/static/makestatic.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// Command makestatic writes the generated file buffer to "static.go".
98
// It is intended to be invoked via "go generate" (directive in "gen.go").

Diff for: godoc/vfs/fs.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.16
6-
// +build go1.16
76

87
package vfs
98

Diff for: gopls/doc/assets/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
module golang.org/x/tools/gopls/doc/assets
66

7-
go 1.19
7+
go 1.23.0

Diff for: internal/gcimporter/israce_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build race
6-
// +build race
76

87
package gcimporter_test
98

Diff for: internal/imports/mkindex.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build ignore
2-
// +build ignore
32

43
// Copyright 2013 The Go Authors. All rights reserved.
54
// Use of this source code is governed by a BSD-style

Diff for: internal/jsonrpc2_v2/serve_go116.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.16
6-
// +build go1.16
76

87
package jsonrpc2
98

Diff for: internal/jsonrpc2_v2/serve_pre116.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !go1.16
6-
// +build !go1.16
76

87
package jsonrpc2
98

Diff for: internal/pprof/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// The pprof command prints the total time in a pprof profile provided
98
// through the standard input.

Diff for: internal/robustio/copyfiles.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// The copyfiles script copies the contents of the internal cmd/go robustio
98
// package to the current directory, with adjustments to make it build.

Diff for: internal/robustio/robustio_flaky.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build windows || darwin
6-
// +build windows darwin
76

87
package robustio
98

Diff for: internal/robustio/robustio_other.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !windows && !darwin
6-
// +build !windows,!darwin
76

87
package robustio
98

Diff for: internal/robustio/robustio_plan9.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build plan9
6-
// +build plan9
76

87
package robustio
98

Diff for: internal/robustio/robustio_posix.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !windows && !plan9
6-
// +build !windows,!plan9
76

87
package robustio
98

Diff for: internal/stdlib/generate.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// The generate command reads all the GOROOT/api/go1.*.txt files and
98
// generates a single combined manifest.go file containing the Go

Diff for: internal/testenv/testenv_notunix.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !(unix || aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris)
6-
// +build !unix,!aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
76

87
package testenv
98

Diff for: internal/testenv/testenv_unix.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build unix || aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6-
// +build unix aix darwin dragonfly freebsd linux netbsd openbsd solaris
76

87
package testenv
98

Diff for: internal/typeparams/copytermlist.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// copytermlist.go copies the term list algorithm from GOROOT/src/go/types.
98

Diff for: playground/socket/socket.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !appengine
6-
// +build !appengine
76

87
// Package socket implements a WebSocket-based playground backend.
98
// Clients connect to a websocket handler and send run/kill commands, and

Diff for: refactor/eg/eg_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// No testdata on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package eg_test
1110

Diff for: refactor/importgraph/graph_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Incomplete std lib sources on Android.
66

77
//go:build !android
8-
// +build !android
98

109
package importgraph_test
1110

0 commit comments

Comments
 (0)