Open chinanoahli opened 4 years ago
run go get -u github.com/v2ray/domain-list-community
to get data
你需要单独再 go get -u -insecure github.com/v2ray/domain-list-community
到GOPATH
里面,因为会直接读取环境变量中 GOPATH
的值。
如果你是直接在项目中运行的,那就需要把当前项目的目录设置成 GOPATH
。
所以在你的 GOPATH
中必须要有一份原始代码🙄
还有环境变量中必须有 GOPATH
,也就是 export GOPATH=/Users/joshua/go
The latest method:
golang
and git
go get -v --insecure github.com/v2fly/domain-list-community
dlc.dat
(without datapath
option means use default data folder of this project):
${GOPATH:-$(go env GOPATH)}/bin/domain-list-community
${GOPATH:-$(go env GOPATH)}/bin/domain-list-community --datapath=/path/to/your/custom/data/directory
可以正常build出来二进制文件,但不论是直接
go run
或是运行二进制文件都会提示Failed: No file found in GOPATH
项目并没有克隆到
/Users/joshua/go
里面