#1795·perkeep

Build failure when building with go1.27 due to stale `github.com/go-json-experiment/json` version

Author: maxsoursCreated Jul 21, 2026Updated Jul 21, 2026

go version: go1.27rc2 GOOS: darwin GOARCH: arm64 branch: master

When running go run make.go, I see the following error:

# github.com/go-json-experiment/json
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/alias.go:618:21: undefined: json.SkipFunc
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/alias.go:957:14: undefined: json.DiscardUnknownMembers

This commit of github.com/go-json-experiment/json is stale and incompatible with go1.27 due to breaking changes to encoding/json/v2: https://go-review.googlesource.com/c/go/+/741320, https://go-review.googlesource.com/c/go/+/745041. This was fixed in upstream commits: https://github.com/go-json-experiment/json/commit/2eb072878d392f090642126400c43ab03a53ee6c, https://github.com/go-json-experiment/json/commit/dc5f05c800f19f9b0114acbbd240674f16b2762f.

github.com/go-json-experiment/json is an indirect dependency imported by tailscale.com. The latest version of tailscale.com imports a commit of github.com/go-json-experiment/json that includes both needed commits: https://github.com/tailscale/tailscale/commit/04ae61fe4bfaf67408e50664006bc3146f72b36a#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6. Bumping tailscale.com v1.90.9 to tailscale.com v1.100.0 should fix the issue.