Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang.org/x/mod模块的版本太旧,导致不支持带小版本号的go version(如1.22.1) #395

Open
tonyzz6 opened this issue Jan 15, 2025 · 1 comment

Comments

@tonyzz6
Copy link

tonyzz6 commented Jan 15, 2025

问题:
编译过程中出现报错 fail to generate new go.mod: /tmp/****/go.mod:3: invalid go version '1.22.1': must match format 1.23"

原因:
项目下的golang.org/x/mod模块版本太旧,需要更新至0.13+?
image
https://cs.opensource.google/go/x/mod/+/refs/tags/v0.12.0:modfile/rule.go;l=246
image
https://cs.opensource.google/go/x/mod/+/refs/tags/v0.13.0:modfile/rule.go;l=246
image

@tonyzz6
Copy link
Author

tonyzz6 commented Jan 17, 2025

经验证,将项目下的golang.org/x/mod更新至0.18,重新打包执行,不再出现上述报错

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

No branches or pull requests

1 participant