gpt4 book ai didi

go - 运行 `go get github.com/hashicorp/vault/command`时出错

转载 作者:行者123 更新时间:2023-12-01 22:17:28 25 4
gpt4 key购买 nike

直到30/10/2019,我都没有任何错误可以获取/安装以下软件包。是某种原因导致的吗?我该如何解决?谢谢!

命令:

go get github.com/hashicorp/vault/command

错误:
 github.com/hashicorp/vault/builtin/logical/rabbitmq
/go/src/github.com/hashicorp/vault/builtin/logical/rabbitmq/path_role_create.go:100:23: client.UpdateTopicPermissionsIn undefined (type *rabbithole.Client has no field or method UpdateTopicPermissionsIn)
/go/src/github.com/hashicorp/vault/builtin/logical/rabbitmq/path_role_create.go:100:66: undefined: rabbithole.TopicPermissions

Go版本:golang:1.12.9-alpine3.9

最佳答案

get命令提取您正在使用的库的最新版本,但是在您的情况下,您可能希望使用已经运行的先前版本。

根据这里

https://github.com/hashicorp/vault/releases

您只需要使用此命令导入版本

go get github.com/hashicorp/vault/command@v1.2.3

希望能帮助到你

关于go - 运行 `go get github.com/hashicorp/vault/command`时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58687150/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com