From: Dmitri Shuralyov Date: Tue, 26 Nov 2024 23:59:03 +0000 (-0500) Subject: doc/next: update with reviewed output from relnote todo X-Git-Tag: go1.24rc1~69 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9dcf41908f9e315368fd043ccd9d67f2774b31e9;p=gostls13.git doc/next: update with reviewed output from relnote todo This is the result of running relnote todo today and reviewing its output. Most of the remaining items that still need to be added to Go 1.24 release notes are now tracked in release blocking issues. For a few where it's less clear, I opted to comment on issues. A good number of items were proposals that affect golang.org/x repos and don't need to be mentioned in Go 1.24 release notes; they're now annotated as such. For #68545. Change-Id: I4dc7f6d2cf5ab9e68bce83d01413224f80384e2f Reviewed-on: https://go-review.googlesource.com/c/go/+/631684 LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Auto-Submit: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov --- diff --git a/doc/next/3-tools.md b/doc/next/3-tools.md index cf2f17830d..144ac5e67b 100644 --- a/doc/next/3-tools.md +++ b/doc/next/3-tools.md @@ -2,6 +2,7 @@ ### Go command {#go-command} + The `go build` and `go install` commands now accept a `-json` flag that reports build output and failures as structured JSON output on standard output. For details of the reporting format, see `go help buildjson`. @@ -14,6 +15,7 @@ a test integration system, you can revert to the text build output by setting ### Cgo {#cgo} + Cgo supports new annotations for C functions to improve run time performance. `#cgo noescape cFunctionName` tells the compiler that memory passed to @@ -22,6 +24,7 @@ the C function `cFunctionname` does not escape. `cFunctionName` does not call back to any Go functions. For more information, see [the cgo documentation](/pkg/cmd/cgo#hdr-Optimizing_calls_of_C_code). + Cgo currently refuses to compile calls to a C function which has multiple incompatible declarations. For instance, if `f` is declared as both `void f(int)` and `void f(double)`, cgo will report an error instead of possibly generating an @@ -31,6 +34,7 @@ files. See [#67699](/issue/67699). ### Vet + The new `tests` analyzer reports common mistakes in declarations of tests, fuzzers, benchmarks, and examples in test packages, such as malformed names, incorrect signatures, or examples that document @@ -38,6 +42,7 @@ non-existent identifiers. Some of these mistakes may cause tests not to run. This analyzer is among the subset of analyzers that are run by `go test`. + The existing `printf` analyzer now reports a diagnostic for calls of the form `fmt.Printf(s)`, where `s` is a non-constant format string, with no other arguments. Such calls are nearly always a mistake @@ -46,6 +51,7 @@ See [#60529](/issue/60529). ### GOCACHEPROG + The `cmd/go` internal binary and test caching mechanism can now be implemented by child processes implementing a JSON protocol between the `cmd/go` tool and the child process named by the `GOCACHEPROG` environment variable. diff --git a/doc/next/7-ports.md b/doc/next/7-ports.md index 96cf661772..18cd80f8b6 100644 --- a/doc/next/7-ports.md +++ b/doc/next/7-ports.md @@ -2,6 +2,7 @@ ### Linux {#linux} + As [announced](go1.23#linux) in the Go 1.23 release notes, Go 1.24 requires Linux kernel version 3.2 or later. @@ -13,4 +14,5 @@ Go 1.25 will require macOS 12 Monterey or later. ### WebAssembly {#wasm} + The support files for WebAssembly have been moved to `lib/wasm` from `misc/wasm`. diff --git a/doc/next/9-todo.md b/doc/next/9-todo.md new file mode 100644 index 0000000000..3e24bbcd63 --- /dev/null +++ b/doc/next/9-todo.md @@ -0,0 +1,64 @@ +