“go list”命令打印了我不理解的提示。

huangapple go评论82阅读模式
英文:

"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).

huangapple
  • 本文由 发表于 2023年6月17日 16:04:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76495283.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定