commit c9cbeb0a1b08a9830a3d2d4abe0c2108e52f7647 [browse]
Author: Joe Tsai
Date: 2026-02-02 17:52:37 -08:00

encoding/json/v2: remove `unknown` tag option and DiscardUnknownMembers

WARNING: This commit contains breaking changes
for those already using GOEXPERIMENT=jsonv2.

This removes support for the `unknown` tag option and
the DiscardUnknownMembers marshal option.

The `unknown` tag option semantics are a bit too subtle
even for experienced Go programmers to understand.
Remove support for it. The exact same feature (or something similar)
can be added back into a future release of json/v2.

We already support the `inline` tag option,
which can handle most cases of what someone might want to do
with unknown fields (such as preserve them).

Fixes #77271
Updates #76444

Change-Id: I875952f0755e58aac4c571869b2cdb56e75cfda9
Reviewed-on: https://go-review.googlesource.com/c/go/+/741320
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>

commit 92c7fcf137848ad74f88f75fc21bcb159eb08104 [browse]
Author: Sean Liao
Date: 2026-02-07 14:45:46 Z

time: document that Parse does not support leap seconds

Fixes #50888

Change-Id: I2691442d7fccd716cd19939cf3931317e21ee4ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/743060
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>

commit e5df06bc55f18ff92fb1c2fce2af69e80d9b3194 [browse]
Author: Sean Liao
Date: 2026-02-07 14:38:05 Z

time: document that LoadLocation creates new Location instances

Fixes #77385

Change-Id: I7e7ddb1c71f0aebd893f640d476b273e229b059a
Reviewed-on: https://go-review.googlesource.com/c/go/+/743040
Reviewed-by: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>

commit b464a924a9bdd00627cbc3baca86a0e042fccb8a [browse]
Author: Pierre Gimalac
Date: 2026-02-03 14:25:23 +01:00

cmd/go: do not collect build information for test packages when not needed

When build information is not needed for go list output (when -export=false and Stale and StaleReason fields are not printed), the "SuppressBuildInfo" option is set to true, so that cmd/go/internal/load does not collect it (in particular VCS information, which is costly to compute).
However the option is only checked in "PackagesAndErrors", not in "TestPackagesAndErrors", so when running go list -test=true, build information is still collected, significantly increasing the duration of the command.

This CL updates TestPackagesAndErrors to check SuppressBuildInfo before calling setBuildInfo, like PackagesAndErrors does.

Fixes #77419

Change-Id: I13f60d179c26d79d94899498f76ba9093566eeb6
Reviewed-on: https://go-review.googlesource.com/c/go/+/740901
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Ian Alexander <jitsu@google.com>
Auto-Submit: Ian Alexander <jitsu@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>

commit 30d5c1b0572f7d021def277097df6a21f300995e [browse]
Author: Mateusz Poliwczak
Date: 2026-02-07 11:03:17 +01:00

net: always set the servers field to defaultNS

When the field is parsed from a file, it would never
have len(servers) == 0, lets enforce that and update
test cases where we had it wrong.

Change-Id: I7fa6ebcf63b9fe20fbbf791113ca948d6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/743020
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>

clone the repository to get more history