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 CSS通配符清除内外边距为什么可以覆盖默认样式?
  • ¥15 SPSS分类模型实训题步骤
  • ¥15 求解决扩散模型代码问题
  • ¥15 工创大赛太阳能电动车项目零基础要学什么
  • ¥20 limma多组间分析最终p值只有一个
  • ¥15 nopCommerce开发问题
  • ¥15 torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with signal SIGKILL
  • ¥15 QuartusⅡ15.0编译项目后,output_files中的.jdi、.sld、.sof不更新怎么解决
  • ¥15 pycharm输出和导师的一样,但是标红
  • ¥15 想问问富文本拿到的html怎么转成docx的