gpt4 book ai didi

使用 Glide - vendor 不工作

转载 作者:数据小太阳 更新时间:2023-10-29 03:22:17 28 4
gpt4 key购买 nike

我正在使用 go version go1.10.3 darwin/amd64glide version v0.13.1项目位于 /Users/robopuff/Development/GoRethink 并且它的树看起来像这样:

.
├── glide.lock
├── glide.yaml
├── main.go
├── rethinkdb_data
│ ├── 001fbc34-bd63-445f-8590-709ac7475294
│ ├── log_file
│ ├── metadata
│ └── tmp
└── vendor
├── github.com
│ ├── cenkalti
│ │ └── backoff
│ ├── golang
│ │ └── protobuf
│ ├── hailocab
│ │ └── go-hostpool
│ ├── opentracing
│ │ └── opentracing-go
│ └── sirupsen
│ └── logrus
├── golang.org
│ └── x
│ ├── crypto
│ ├── net
│ └── sys
└── gopkg.in
├── fatih
│ └── pool.v2
└── gorethink
└── gorethink.v4

运行go run main.go后欢迎报错

❯ go run main.go
main.go:7:2: cannot find package "gopkg.in/gorethink/gorethink.v4" in any of:
/usr/local/go/src/gopkg.in/gorethink/gorethink.v4 (from $GOROOT)
/Users/robopuff/go/src/gopkg.in/gorethink/gorethink.v4 (from $GOPATH)

编译器难道不应该首先查看 vendor 吗?

最佳答案

该问题的正确答案是通读 Docs , 特别是 Workspaces并理解它。

关于使用 Glide - vendor 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51751066/

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