Skip to content

fix: 降级 golang.org/x/tools 到 v0.31.0 解决 go generate 编译错误#161

Open
jzhang405 wants to merge 1 commit into
go-kratos:mainfrom
jzhang405:fix/go-generate-failure
Open

fix: 降级 golang.org/x/tools 到 v0.31.0 解决 go generate 编译错误#161
jzhang405 wants to merge 1 commit into
go-kratos:mainfrom
jzhang405:fix/go-generate-failure

Conversation

@jzhang405

Copy link
Copy Markdown

由于 golang.org/x/tools@v0.21.1 存在兼容性问题,
导致 go generate ./... 时出现 "invalid array length" 编译错误。 通过在 go.mod 中添加 replace 指令降级到 v0.31.0 来解决此问题。

由于 golang.org/x/tools@v0.21.1 存在兼容性问题,
导致 go generate ./... 时出现 "invalid array length" 编译错误。
通过在 go.mod 中添加 replace 指令降级到 v0.31.0 来解决此问题。
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant