doulan8846 2018-08-08 16:00
浏览 20
已采纳

与Glide一起使用-供应商不起作用

I am using go version go1.10.3 darwin/amd64 with glide version v0.13.1 Project is located at /Users/robopuff/Development/GoRethink and it's tree looks like this:

.
├── 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

After running go run main.go I am welcomed with an error

❯ 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)

Shouldn't go compiler first of all look at vendor?

  • 写回答

1条回答 默认 最新

  • dsf55s1233 2018-08-09 09:26
    关注

    The proper answer for that one is to read through Docs, especially Workspaces and understand it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?