Skip to content

Commit fdad388

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d5a0487 + 702f164 commit fdad388

File tree

87 files changed

+2465
-725
lines changed

Some content is hidden

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

87 files changed

+2465
-725
lines changed

doc/next/3-tools.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ specifying the command's current version.
2626

2727
### Vet {#vet}
2828

29+
The `go vet` command includes new analyzers:
30+
2931
<!-- go.dev/issue/18022 -->
3032

31-
The `go vet` command now includes the
32-
[waitgroup](https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/waitgroup)
33-
analyzer, which reports misplaced calls to [sync.WaitGroup.Add].
33+
- [waitgroup](https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/waitgroup),
34+
which reports misplaced calls to [sync.WaitGroup.Add]; and
35+
36+
<!-- go.dev/issue/28308 -->
3437

38+
- [hostport](https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/hostport),
39+
which reports uses of `fmt.Sprintf("%s:%d", host, port)` to
40+
construct addresses for [net.Dial], as these will not work with
41+
IPv6; instead it suggests using [net.JoinHostPort].
3542

src/cmd/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ require (
77
golang.org/x/arch v0.14.0
88
golang.org/x/build v0.0.0-20250211223606-a5e3f75caa63
99
golang.org/x/mod v0.24.0
10-
golang.org/x/sync v0.12.0
11-
golang.org/x/sys v0.31.0
10+
golang.org/x/sync v0.13.0
11+
golang.org/x/sys v0.32.0
1212
golang.org/x/telemetry v0.0.0-20250212145848-75305293b65a
1313
golang.org/x/term v0.29.0
14-
golang.org/x/tools v0.31.1-0.20250328151535-a857356d5cc5
14+
golang.org/x/tools v0.32.1-0.20250423190156-68e94bd1775e
1515
)
1616

1717
require (
1818
github.com/ianlancetaylor/demangle v0.0.0-20240912202439-0a2b6291aafd // indirect
19-
golang.org/x/text v0.22.0 // indirect
19+
golang.org/x/text v0.24.0 // indirect
2020
rsc.io/markdown v0.0.0-20240306144322-0bf8f97ee8ef // indirect
2121
)

src/cmd/go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ golang.org/x/build v0.0.0-20250211223606-a5e3f75caa63 h1:QZ8/V1B4oK7N5t6w0zX5dAx
1212
golang.org/x/build v0.0.0-20250211223606-a5e3f75caa63/go.mod h1:JhINjMoWj8G2oLkaBLNDBIr/GLqJNOkCr4XzFWWYCf4=
1313
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
1414
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
15-
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
16-
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
17-
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
18-
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
15+
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
16+
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
17+
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
18+
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
1919
golang.org/x/telemetry v0.0.0-20250212145848-75305293b65a h1:3fgycqG+90xOafOruMBVZXa8DUeOt5qbGLjQoNvZ8Ew=
2020
golang.org/x/telemetry v0.0.0-20250212145848-75305293b65a/go.mod h1:Ng+6E7PnWNge4EifZkPKeQUnm5iyAoH8qQgw3pLCiF4=
2121
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
2222
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
23-
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
24-
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
25-
golang.org/x/tools v0.31.1-0.20250328151535-a857356d5cc5 h1:noURjvaY1txrDU1W+7n5WHPVZdcKoMi7KAak9zwwbL0=
26-
golang.org/x/tools v0.31.1-0.20250328151535-a857356d5cc5/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ=
23+
golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0=
24+
golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU=
25+
golang.org/x/tools v0.32.1-0.20250423190156-68e94bd1775e h1:t16U5lZsxU6d2R2ax2lfujEzzsctlYTvXppAlsAWP4A=
26+
golang.org/x/tools v0.32.1-0.20250423190156-68e94bd1775e/go.mod h1:ZxrU41P/wAbZD8EDa6dDCa6XfpkhJ7HFMjHJXfBDu8s=
2727
rsc.io/markdown v0.0.0-20240306144322-0bf8f97ee8ef h1:mqLYrXCXYEZOop9/Dbo6RPX11539nwiCNBb1icVPmw8=
2828
rsc.io/markdown v0.0.0-20240306144322-0bf8f97ee8ef/go.mod h1:8xcPgWmwlZONN1D9bjxtHEjrUtSEa3fakVF8iaewYKQ=

src/cmd/go/internal/test/flagdefs.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/test/flagdefs_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ func TestMain(m *testing.M) {
1818
os.Exit(m.Run())
1919
}
2020

21+
// TestPassFlagToTest ensures that the generated table of flags is
22+
// consistent with output of "go tool vet -flags", using the installed
23+
// go command---so if it fails, you may need to re-run make.bash.
2124
func TestPassFlagToTest(t *testing.T) {
2225
wantNames := genflags.ShortTestFlags()
2326

src/cmd/internal/objabi/pkgspecial.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var runtimePkgs = []string{
5050

5151
"internal/runtime/atomic",
5252
"internal/runtime/exithook",
53+
"internal/runtime/gc",
5354
"internal/runtime/maps",
5455
"internal/runtime/math",
5556
"internal/runtime/sys",

src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go

Lines changed: 148 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)