直到2019年10月30日,我都没有任何错误可以获取/安装以下软件包。是某种原因导致的吗?我该如何解决?谢谢!
命令:
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
转到版本:golang:1.12.9-alpine3.9
答案 0 :(得分:1)
get命令提取您正在使用的最新版本的库,但是在您的情况下,您可能希望使用已经运行的先前版本。
基于此处
https://github.com/hashicorp/vault/releases
您只需要使用此命令导入版本
go get github.com/hashicorp/vault/command@v1.2.3
希望有帮助