MiSecurity / x-patrol

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

program can't run success #14

Closed alvinyeats closed 6 years ago

alvinyeats commented 6 years ago

When I download this program: cd x-patrol, then I execute "go build main.go",I got the following errors:

main.go:29:2: cannot find package "github.com/urfave/cli" in any of:
    /usr/lib/golang/src/github.com/urfave/cli (from $GOROOT)
    /root/go/src/github.com/urfave/cli (from $GOPATH)
main.go:28:2: cannot find package "x-patrol/cmd" in any of:
    /usr/lib/golang/src/x-patrol/cmd (from $GOROOT)
    /root/go/src/x-patrol/cmd (from $GOPATH)

I think you maybe forget to write some packages that need to depend on, and the package path may be have some problem, Please update the readme, describe the install&run part clearly, then more newbies can run you program easily.

netxfly commented 6 years ago

把项目放到$GOPATH下,然后利用go get安装缺少的依赖包,如:

go get github.com/urfave/cli