英文:
"go list" command prints hint I dont understand
问题
当运行以下命令时:
go list -m -u all
会打印出以下信息:
go: updates to go.sum needed, disabled by -mod=readonly
我不确定如何解释这个信息。我已经检查了go list
命令,但它没有任何mod
标志。有人可以提供如何处理或理解这个信息的建议吗?谢谢。
英文:
When running the following command:
go list -m -u all
a message is printed stating:
go: updates to go.sum needed, disabled by -mod=readonly
I am not sure how to interpret this message. I have checked the go list
command and it does not have any mod
flags. Can anyone offer suggestions on how to handle or understand this message? Thank you.
答案1
得分: 1
这是在之前的补丁版本(Go1.20.5和Go1.19.10)中引入的一个回归问题。请参阅此错误报告:cmd/go: go list fails with submodules which have test-only dependencies。
该问题已经在最新版本中修复,并将被反向移植到Go1.20(里程碑Go1.20.6)和Go1.19(里程碑Go1.19.11)。
英文:
This is a regression introduced in a previous patch release (Go1.20.5 and Go1.19.10). See this bug report: cmd/go: go list fails with submodules which have test-only dependencies.
The issue has already been fixed on the tip, and will be backported to Go1.20 (milestone Go1.20.6) and Go1.19 (milestone Go1.19.11).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论