Closed LiuWeiMr closed 4 years ago
运行make build报错: main.go:8:2: cannot find package "github.com/shiguanghuxian/etcd-manage/program" in any of: /usr/local/go/src/github.com/shiguanghuxian/etcd-manage/program (from $GOROOT) /Users/liuwei/go/src/github.com/shiguanghuxian/etcd-manage/program (from $GOPATH) make: *** [build] Error 1
查找原因是仓库找不到,直接在浏览器里访问这个仓库报404 github.com/shiguanghuxian/etcd-manage/program
这个项目还没有用go mod你需要把项目放到你的GOPATH里,进行编译,且GO111MODULE=off或GO111MODULE= auto
嗯嗯,解决了,多谢
运行make build报错: main.go:8:2: cannot find package "github.com/shiguanghuxian/etcd-manage/program" in any of: /usr/local/go/src/github.com/shiguanghuxian/etcd-manage/program (from $GOROOT) /Users/liuwei/go/src/github.com/shiguanghuxian/etcd-manage/program (from $GOPATH) make: *** [build] Error 1
查找原因是仓库找不到,直接在浏览器里访问这个仓库报404 github.com/shiguanghuxian/etcd-manage/program