导入Vault 1.3.0时出现错误,go mod错误。

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

Error while importing vault 1.3.0 go mod error

问题

在尝试导入github.com/hashicorp/vault/api v1.3.0时,在require字段中遇到了问题。

命令gopls.update_go_sum失败了:错误:err: 退出状态 1:stderr:go: github.com/hashicorp/vault/api@v1.3.0: 在修订版本api/v1.3.0中读取github.com/hashicorp/vault/api/api/go.mod: 未知修订版本api/v1.3.0。

我看到一些解决方案使用replaceall,但不确定。

非常感谢您的帮助!

英文:

While trying to import
github.com/hashicorp/vault/api v1.3.0 in the require field, i am facing the issue.

Command 'gopls.update_go_sum' failed: Error: err: exit status 1: stderr: go: github.com/hashicorp/vault/api@v1.3.0: reading github.com/hashicorp/vault/api/api/go.mod at revision api/v1.3.0: unknown revision api/v1.3.0 .

I have seen some solution to use the replace and all but not sure.

Any help is appreciated?

Thanks in advance.

答案1

得分: 1

错误明确指出api/v1.3.0版本未知,因为最新的版本是api/v1.1.1

链接:https://github.com/hashicorp/vault/releases/tag/api%2Fv1.1.1

如果你想了解更多关于为什么会发生这种情况的信息,请阅读这个链接:https://stackoverflow.com/a/60601402

英文:

Error precisely mentions that api/v1.3.0 revision is unknown since the latest revision is api/v1.1.1.

Link: https://github.com/hashicorp/vault/releases/tag/api%2Fv1.1.1

If you want to know more about why this is happening, read this: https://stackoverflow.com/a/60601402

huangapple
  • 本文由 发表于 2021年8月17日 11:44:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/68811421.html
匿名

发表评论

匿名网友

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

确定