Skip to content

最新版本make无法成功cannot find package "github.com/wandoulabs/zkhelper #928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xiaoliqiang opened this issue Aug 17, 2016 · 6 comments

Comments

@xiaoliqiang
Copy link

求帮能帮忙解决下
cannot find package "github.com/wandoulabs/zkhelper

@spinlock
Copy link
Member

@xiaoliqiang go1.4 么?

@spinlock
Copy link
Member

go1.5 默认 GO15VENDOREXPERIMENT=0
go1.6 默认 GO15VENDOREXPERIMENT=1
go1.7 去掉了这个选项

所以为了兼容性,这个还得保留。

@chunshengster
Copy link

codes 3.0 branch ,both go 1.5 and go 1.7 , error when make :

go build -i -o bin/codis-dashboard ./cmd/dashboard
cmd/dashboard/main.go:17:2: cannot find package "github.com/CodisLabs/codis/pkg/models/etcd" in any of:
    /usr/lib/golang/src/github.com/CodisLabs/codis/pkg/models/etcd (from $GOROOT)
    /home/xxxx/GOPATH/src/github.com/CodisLabs/codis/pkg/models/etcd (from $GOPATH)
cmd/dashboard/main.go:18:2: cannot find package "github.com/CodisLabs/codis/pkg/models/zk" in any of:
    /usr/lib/golang/src/github.com/CodisLabs/codis/pkg/models/zk (from $GOROOT)
    /home/xxxx/GOPATH/src/github.com/CodisLabs/codis/pkg/models/zk (from $GOPATH)
cmd/dashboard/main.go:19:2: cannot find package "github.com/CodisLabs/codis/pkg/topom" in any of:
    /usr/lib/golang/src/github.com/CodisLabs/codis/pkg/topom (from $GOROOT)
    /home/xxxx/GOPATH/src/github.com/CodisLabs/codis/pkg/topom (from $GOPATH)
make: *** [codis-dashboard] 错误 1

@spinlock
Copy link
Member

@chunshengster 编译时的 pwd 是什么?

@chunshengster
Copy link

go 1.7 ,用 master 分支就没有问题。

@spinlock
Copy link
Member

https://travis-ci.org/CodisLabs/codis/jobs/152977849 编译是 OK 的。
确定是 branch 上最新的代码么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants