英文:
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。
我看到一些解决方案使用replace
和all
,但不确定。
非常感谢您的帮助!
英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论