Glide无法找到包“”。在

use*_*588 5 go glide-golang

我的项目树是 $GOPATH/src/gillab.myfirm.ru/golang/rkn

我尝试使用glide来获取依赖关系glide install,但我遇到了一个问题:

[ERROR] Error scanning gitlab.myfirm.ru/golang/rkn/events: cannot find package "." in:
    /Users/droot/.glide/cache/src/https-gitlab.myfirm.ru-golang-rkn/events
Run Code Online (Sandbox Code Playgroud)

我不明白滑行到底要我什么。这是什么包装"."

$GOPATH/src/gitlab.myfirm.ru/golang/rkn/event/events.go 只有4进口

package events

import (
    "github.com/streadway/amqp"
    log "github.com/Sirupsen/logrus"
    "fmt"
    "gitlab.myfirm.ru/golang/rkn/config"
)
........
Run Code Online (Sandbox Code Playgroud)

同样的问题,我还有另外4个软件包。

use*_*588 6

我找到了答案。

当 glide 生成缓存文件时,git 就在那里。

如果masterfoo packagesomeBranch有也bar package当你让glide install滑翔也缓存 git 分支并从缓存master分支作为默认值。

解决方案是cd /Users/droot/.glide/cache/src/https-gitlab.myfirm.ru-golang-??rkn/结帐缓存分支git checkout someBranch