Skip to content

Verify all modules and fix runtime reference#11

Closed
kainonly wants to merge 4 commits into
mainfrom
claude/verify-modules-fix-runtime-JxdJp
Closed

Verify all modules and fix runtime reference#11
kainonly wants to merge 4 commits into
mainfrom
claude/verify-modules-fix-runtime-JxdJp

Conversation

@kainonly
Copy link
Copy Markdown
Owner

No description provided.

This patch fixes two critical issues:

1. Build Failure: Updated bytedance/sonic from v1.14.0 to v1.14.2 to resolve
   the "invalid reference to runtime.lastmoduledatap" linker error that
   prevented csrf and help modules from building with Go 1.24.7.

2. Test Failure: Added sonyflake initialization in help package tests to
   prevent nil SF errors in CI environments without private IP addresses.

Changes:
- Upgraded github.com/bytedance/sonic v1.14.0 => v1.14.2
- Upgraded github.com/bytedance/sonic/loader v0.3.0 => v0.4.0
- Upgraded github.com/cloudwego/base64x v0.1.5 => v0.1.6
- Upgraded github.com/klauspost/cpuid/v2 v2.0.9 => v2.2.9
- Added init() in help/integration_test.go to configure sonyflake with fixed MachineID

All tests now pass successfully.
- 更新 CHANGELOG.md 添加 v1.0.1 条目
- 创建 RELEASE_NOTES_v1.0.1.md 发布说明
- 记录构建错误和测试失败的修复详情
- 记录依赖包更新信息
- Add *.test pattern to ignore compiled test binaries
- Add coverage.out to ignore coverage output files
- Add explicit module cache cleaning step before tests
- Ensure fresh dependencies are downloaded in CI
- Reorganize workflow steps for clarity

This resolves persistent cache issues where CI was using
outdated sonic v1.14.0 instead of the fixed v1.14.2.
@kainonly kainonly closed this Jan 16, 2026
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