-
Notifications
You must be signed in to change notification settings - Fork 305
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
cannot load github.com/hound-search/hound/codesearch/sparse #29
Comments
手动clone github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下 再编译 |
root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git root@li:/root/go/src/x-patrol# go build main.go |
需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0 |
util/codesearch/regexp/match.go |
我是说不是修改文件里面的引用目录,是在你的mod的目录里面修改你clone下来的项目 |
好的 多谢 |
root@li:/root/go/pkg/mod/github.com/hound-search/hound@v0.2.0# pwd |
为什么不下载他的release文件呢,报错应该是你配置文件没有添加。他仓库下面的conf文件夹,和你的执行文件放在同一位置,然后修改配置文件,他需要链接数据库 |
哥们,我也遇到相同问题,你怎么解决的后来 |
git clone https://github.com/hound-search/hound.git |
谢谢,试了下,这样可以了,怎么同时启动web端和扫描任务呢 |
@markflyfly 我也是同样的问题,请问你是怎么解决的呀。你说的试了下,是试了上面哪个方案呀。求指教,谢谢! |
牛皮,这样可以了 |
牛批,牛批,一不注意,你们已经聊了这么多了啊。 |
部署于AWS海外节点
root@li:/root/go/src/x-patrol# ./build.sh
go: finding github.com/hound-search/hound/codesearch/sparse latest
go: finding github.com/hound-search/hound/codesearch latest
go get github.com/hound-search/hound/codesearch/sparse: no matching versions for query "latest"
go: finding github.com/go-macaron/cache latest
go: finding github.com/go-macaron/captcha latest
go: finding github.com/go-macaron/csrf latest
go: finding github.com/go-macaron/session latest
go: finding github.com/google/go-github/github latest
go: finding golang.org/x/oauth2 latest
go: finding github.com/hound-search/hound/codesearch/sparse latest
go: finding github.com/hound-search/hound/codesearch latest
build command-line-arguments: cannot load github.com/hound-search/hound/codesearch/sparse: cannot find module providing package github.com/hound-search/hound/codesearch/sparse
root@li:/root/go/src/x-patrol# go build main.go
go: finding github.com/hound-search/hound/codesearch/sparse latest
go: finding github.com/hound-search/hound/codesearch latest
build command-line-arguments: cannot load github.com/hound-search/hound/codesearch/sparse: cannot find module providing package github.com/hound-search/hound/codesearch/sparse
GOBIN=/usr/local/go/bin
GOROOT=/usr/local/go
GOPATH=/root/go
GO111MODULE=on
The text was updated successfully, but these errors were encountered: