Skip to content
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

Cant't build #1143

Closed
Allenxuxu opened this issue Aug 29, 2019 · 2 comments
Closed

Cant't build #1143

Allenxuxu opened this issue Aug 29, 2019 · 2 comments

Comments

@Allenxuxu
Copy link

vendor/github.com/go-redis/redis/cluster.go:16:2: cannot find package "github.com/go-redis/redis/v7/internal" in any of:
	/data/go/src/go-services/vendor/github.com/go-redis/redis/v7/internal (vendor tree)
	/usr/local/go/src/github.com/go-redis/redis/v7/internal (from $GOROOT)
	/data/go/src/github.com/go-redis/redis/v7/internal (from $GOPATH)
@wrick198
Copy link

wrick198 commented Sep 3, 2019

我遇到了同样的问题,请问你是怎么解决的啊

@Allenxuxu
Copy link
Author

@wrick198 我遇到这个问题是因为go-redis仓库用了 go module,而我的没有并且使用了 govendor,我直接进 vendor 目录改了 go-redis 所有 import 的路径,删除了 ”v7“ 。

建议你别这么搞 !

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

2 participants