MiSecurity / x-patrol

github泄露扫描系统
1.15k stars 303 forks source link

cannot load github.com/hound-search/hound/codesearch/sparse #29

Open tuanzhang-123 opened 5 years ago

tuanzhang-123 commented 5 years ago

部署于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

vvkkhjt commented 5 years ago

手动clone github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下 再编译

tuanzhang-123 commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist

root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done.

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

vvkkhjt commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist

root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done.

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

需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0

tuanzhang-123 commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done. 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

需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0

util/codesearch/regexp/match.go util/codesearch/index/write.go 两个文件里的引用目录被我修改之后 root@li:/root/go/src/x-patrol# go build main.go build command-line-arguments: cannot load github.com/hound-search/hound: cannot find module providing package github.com/hound-search/hound 依然是这个错误,之前没接触过golang望大神指点...

vvkkhjt commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done. 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

需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0

util/codesearch/regexp/match.go util/codesearch/index/write.go 两个文件里的引用目录被我修改之后 root@li:/root/go/src/x-patrol# go build main.go build command-line-arguments: cannot load github.com/hound-search/hound: cannot find module providing package github.com/hound-search/hound 依然是这个错误,之前没接触过golang望大神指点...

我是说不是修改文件里面的引用目录,是在你的mod的目录里面修改你clone下来的项目 未命名1559616650 别执行他的脚本了,他的脚本执行是构建不出来的,你如果有定制化构建需求,自己执行go build,如果没有直接下载他们release里面的构建好的执行文件吧

tuanzhang-123 commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done. 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

需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0

util/codesearch/regexp/match.go util/codesearch/index/write.go 两个文件里的引用目录被我修改之后 root@li:/root/go/src/x-patrol# go build main.go build command-line-arguments: cannot load github.com/hound-search/hound: cannot find module providing package github.com/hound-search/hound 依然是这个错误,之前没接触过golang望大神指点...

我是说不是修改文件里面的引用目录,是在你的mod的目录里面修改你clone下来的项目 未命名1559616650 别执行他的脚本了,他的脚本执行是构建不出来的,你如果有定制化构建需求,自己执行go build,如果没有直接下载他们release里面的构建好的执行文件吧

好的 多谢

tuanzhang-123 commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done. 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

需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0

util/codesearch/regexp/match.go util/codesearch/index/write.go 两个文件里的引用目录被我修改之后 root@li:/root/go/src/x-patrol# go build main.go build command-line-arguments: cannot load github.com/hound-search/hound: cannot find module providing package github.com/hound-search/hound 依然是这个错误,之前没接触过golang望大神指点...

我是说不是修改文件里面的引用目录,是在你的mod的目录里面修改你clone下来的项目 未命名1559616650 别执行他的脚本了,他的脚本执行是构建不出来的,你如果有定制化构建需求,自己执行go build,如果没有直接下载他们release里面的构建好的执行文件吧

root@li:/root/go/pkg/mod/github.com/hound-search/hound@v0.2.0# pwd /root/go/pkg/mod/github.com/hound-search/hound@v0.2.0 这样也不行依旧是那个问题。。。 构建好的执行文件运行也报错。。。 我就是直接go build main.go的,没用那个脚本。。。

vvkkhjt commented 5 years ago

手动克隆github.com/hound-search/hound/codesearch/sparse这个库,放在go mod的目录下再编译

root@li:/root/go/pkg/mod# git clone github.com/hound-search/hound/codesearch/sparse fatal: repository 'github.com/hound-search/hound/codesearch/sparse' does not exist root@li:/root/go/pkg/mod# git clone https://github.com/hound-search/hound.git Cloning into 'hound'... remote: Enumerating objects: 1217, done. remote: Total 1217 (delta 0), reused 0 (delta 0), pack-reused 1217 Receiving objects: 100% (1217/1217), 2.06 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (613/613), done. 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

需要看一下引用的目录,不能用默认clone下来的目录。我这边是\go\pkg\mod\github.com\hound-search\hound@v0.2.0

util/codesearch/regexp/match.go util/codesearch/index/write.go 两个文件里的引用目录被我修改之后 root@li:/root/go/src/x-patrol# go build main.go build command-line-arguments: cannot load github.com/hound-search/hound: cannot find module providing package github.com/hound-search/hound 依然是这个错误,之前没接触过golang望大神指点...

我是说不是修改文件里面的引用目录,是在你的mod的目录里面修改你clone下来的项目 未命名1559616650 别执行他的脚本了,他的脚本执行是构建不出来的,你如果有定制化构建需求,自己执行go build,如果没有直接下载他们release里面的构建好的执行文件吧

root@li:/root/go/pkg/mod/github.com/hound-search/hound@v0.2.0# pwd /root/go/pkg/mod/github.com/hound-search/hound@v0.2.0 这样也不行依旧是那个问题。。。 构建好的执行文件运行也报错。。。

为什么不下载他的release文件呢,报错应该是你配置文件没有添加。他仓库下面的conf文件夹,和你的执行文件放在同一位置,然后修改配置文件,他需要链接数据库

markzhou537 commented 5 years ago

哥们,我也遇到相同问题,你怎么解决的后来 @tuanzhang-123

xiaofengtongxue commented 5 years ago

git clone https://github.com/hound-search/hound.git mv hound/* /go/pkg/mod/github.com/hound-search/hound@v0.2.0/ 我是这样解决的

markzhou537 commented 5 years ago

谢谢,试了下,这样可以了,怎么同时启动web端和扫描任务呢

yingl666 commented 5 years ago

@markflyfly 我也是同样的问题,请问你是怎么解决的呀。你说的试了下,是试了上面哪个方案呀。求指教,谢谢!

sunnybug commented 4 years ago

已编译通过 https://github.com/sunnybug/x-patrol

zhangk64 commented 4 years ago

git clone https://github.com/hound-search/hound.git mv hound/* /go/pkg/mod/github.com/hound-search/hound@v0.2.0/ 我是这样解决的

牛皮,这样可以了

netxfly commented 4 years ago

牛批,牛批,一不注意,你们已经聊了这么多了啊。