gpt4 book ai didi

去获取 hashcorp/levant 失败

转载 作者:行者123 更新时间:2023-12-01 22:21:04 24 4
gpt4 key购买 nike

我继承了一个构建 docker 镜像并使用 hashicorp/levant 的构建脚本要部署的库。大约一年来,我们一直在运行 go get github.com/jrasell/levantlevant图书馆。在过去的几天里,repo URL 被合并到 Hashicorp 的组织下,我们更改了脚本以使用 go get github.com/hashicorp/levant 进行拉取。 .但无论哪种方式,我们都会得到这个多重分配错误。这是什么意思,不'去'基本上只是拉动git repo吗?

../go/src/github.com/hashicorp/levant/template/render.go:28:11: cannot assign 
*"github.com/hashicorp/nomad/vendor/github.com/hashicorp/nomad/api".Job to job
(type *"github.com/hashicorp/nomad/api".Job) in multiple assignment

最佳答案

首先,go get适用于包,而不是存储库。
除了拉他们go get还编译和安装它们,这就是你的错误弹出的时候。
更多信息在这里:
https://nanxiao.gitbooks.io/golang-101-hacks/content/posts/go-get-command.html

关于去获取 hashcorp/levant 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63531365/

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