Skip to content

Commit 725110b

Browse files
author
Hiro
committed
Merge remote-tracking branch 'upstream/master' into chore/github
2 parents f1656e8 + cea35ba commit 725110b

File tree

760 files changed

+50157
-9252
lines changed

Some content is hidden

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

760 files changed

+50157
-9252
lines changed

api/next/50489.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg math/big, method (*Rat) FloatPrec() (int, bool) #50489

api/next/57178.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg crypto/x509, method (*CertPool) AddCertWithConstraint(*Certificate, func([]*Certificate) error) #57178

api/next/58808.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pkg net, method (*TCPConn) WriteTo(io.Writer) (int64, error) #58808
2+
pkg os, method (*File) WriteTo(io.Writer) (int64, error) #58808

api/next/62037.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pkg go/types, method (*Info) PkgNameOf(*ast.ImportSpec) *PkgName #62037
2+
pkg go/types, method (Checker) PkgNameOf(*ast.ImportSpec) *PkgName #62037

api/next/62039.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pkg go/version, func Compare(string, string) int #62039
2+
pkg go/version, func IsValid(string) bool #62039
3+
pkg go/version, func Lang(string) string #62039

api/next/62418.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg log/slog, func SetLogLoggerLevel(Level) Level #62418

api/next/62605.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg go/types, type Info struct, FileVersions map[*ast.File]string #62605

api/next/63223.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pkg go/types, func NewAlias(*TypeName, Type) *Alias #63223
2+
pkg go/types, func Unalias(Type) Type #63223
3+
pkg go/types, method (*Alias) Obj() *TypeName #63223
4+
pkg go/types, method (*Alias) String() string #63223
5+
pkg go/types, method (*Alias) Underlying() Type #63223
6+
pkg go/types, type Alias struct #63223

doc/godebug.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,27 @@ patterns and unescape both patterns and request paths by segment.
143143
This behavior can be controlled by the
144144
[`httpmuxgo121` setting](/pkg/net/http/#ServeMux).
145145

146+
Go 1.22 added the [Alias type](/pkg/go/types#Alias) to [go/types](/pkg/go/types)
147+
for the explicit representation of [type aliases](/ref/spec#Type_declarations).
148+
Whether the type checker produces `Alias` types or not is controlled by the
149+
[`gotypesalias` setting](/pkg/go/types#Alias).
150+
For Go 1.22 it defaults to `gotypesalias=0`.
151+
For Go 1.23, `gotypealias=1` will become the default.
152+
This setting will be removed in a future release, Go 1.24 at the earliest.
153+
154+
Go 1.22 changed the default minimum TLS version supported by both servers
155+
and clients to TLS 1.2. The default can be reverted to TLS 1.0 using the
156+
[`tls10server` setting](/pkg/crypto/tls/#Config).
157+
158+
Go 1.22 changed the default TLS cipher suites used by clients and servers when
159+
not explicitly configured, removing the cipher suites which used RSA based key
160+
exchange. The default can be revert using the [`tlsrsakex` setting](/pkg/crypto/tls/#Config).
161+
162+
Go 1.22 disabled
163+
[`ConnectionState.ExportKeyingMaterial`](/pkg/crypto/tls/#ConnectionState.ExportKeyingMaterial)
164+
when the connection supports neither TLS 1.3 nor Extended Master Secret
165+
(implemented in Go 1.21). It can be reenabled with the [`tlsunsafeekm`
166+
setting](/pkg/crypto/tls/#ConnectionState.ExportKeyingMaterial).
146167

147168
### Go 1.21
148169

misc/wasm/go_wasip1_wasm_exec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ case "$GOWASIRUNTIME" in
1414
exec wazero run -mount /:/ -env-inherit -cachedir "${TMPDIR:-/tmp}"/wazero ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
1515
;;
1616
"wasmtime" | "")
17-
# TODO(go.dev/issue/63718): Switch to the new CLI offered in the major version 14 of Wasmtime.
18-
exec env WASMTIME_NEW_CLI=0 wasmtime run --dir=/ --env PWD="$PWD" --env PATH="$PATH" --max-wasm-stack 1048576 ${GOWASIRUNTIMEARGS:-} "$1" -- "${@:2}"
17+
# Match the major version in "wasmtime-cli 14.0.0". For versions before 14
18+
# we need to use the old CLI. This requires Bash v3.0 and above.
19+
# TODO(johanbrandhorst): Remove this condition once 1.22 is released.
20+
# From 1.23 onwards we'll only support the new wasmtime CLI.
21+
if [[ "$(wasmtime --version)" =~ wasmtime-cli[[:space:]]([0-9]+)\.[0-9]+\.[0-9]+ && "${BASH_REMATCH[1]}" -lt 14 ]]; then
22+
exec wasmtime run --dir=/ --env PWD="$PWD" --env PATH="$PATH" --max-wasm-stack 1048576 ${GOWASIRUNTIMEARGS:-} "$1" -- "${@:2}"
23+
else
24+
exec wasmtime run --dir=/ --env PWD="$PWD" --env PATH="$PATH" -W max-wasm-stack=1048576 ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
25+
fi
1926
;;
2027
*)
2128
echo "Unknown Go WASI runtime specified: $GOWASIRUNTIME"

0 commit comments

Comments
 (0)