Skip to content

fix(ai): bump bytedance/sonic to v1.15.0 for Go 1.26 build support - #1532

Open
ambiguous-pointer wants to merge 1 commit into
apache:aifrom
ambiguous-pointer:ai
Open

fix(ai): bump bytedance/sonic to v1.15.0 for Go 1.26 build support#1532
ambiguous-pointer wants to merge 1 commit into
apache:aifrom
ambiguous-pointer:ai

Conversation

@ambiguous-pointer

Copy link
Copy Markdown
Contributor

Fixes #1529

The ai module fails to build on Go >= 1.26 hosts because the transitive dependency bytedance/sonic v1.14.1 binds to the old map internals via //go:linkname (undefined: GoMapIterator). v1.15.0 fixed it upstream (bytedance/sonic#898). Upgraded sonic to v1.15.0 plus sonic/loader v0.5.0 and cloudwego/base64x v0.1.6 per go mod tidy.

Verified with go1.26.4: go build passes, server starts, SSE chat works end-to-end (qwen3.7-max, 4,674 tokens).

Please provide a description of this PR:

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

  • Docs
  • Installation
  • User Experience
  • Dubboctl
  • Console
  • Core Component

Please check any characteristics that apply to this pull request.

Fixes apache#1529

The ai module fails to build on Go >= 1.26 hosts because the transitive
dependency bytedance/sonic v1.14.1 binds to the old map internals via
//go:linkname (undefined: GoMapIterator). v1.15.0 fixed it upstream
(bytedance/sonic#898). Upgraded sonic to v1.15.0 plus sonic/loader v0.5.0
and cloudwego/base64x v0.1.6 per go mod tidy.

Verified with go1.26.4: go build passes, server starts, SSE chat works
end-to-end (qwen3.7-max, 4,674 tokens).
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the ai/ Go module’s dependency set to restore successful builds on Go >= 1.26 by upgrading the transitive JSON dependency chain (notably github.com/bytedance/sonic) to versions compatible with the Go 1.26 runtime/map iterator changes.

Changes:

  • Bumps github.com/bytedance/sonic to v1.15.0 and github.com/bytedance/sonic/loader to v0.5.0 in ai/go.mod.
  • Keeps ai/go.sum in sync with the upgraded modules (and drops no-longer-needed sums from go mod tidy).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
ai/go.mod Updates indirect dependency versions to pull in sonic fixes required for Go 1.26 builds.
ai/go.sum Refreshes module checksums consistent with the dependency upgrades and tidy.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants