我是新来的,我正试着用最少的文档设置一个围棋项目:https://github.com/alphagov/metadata-api
我已经克隆了它,但当我try go build
次时,我得到以下警告:
main.go:8:2: cannot find package "github.com/Sirupsen/logrus" in any of:
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/github.com/Sirupsen/logrus (from $GOROOT)
/Users/me/go/src/github.com/Sirupsen/logrus (from $GOPATH)
main.go:14:2: cannot find package "github.com/alphagov/metadata-api/content_api" in any of:
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/github.com/alphagov/metadata-api/content_api (from $GOROOT)
/Users/me/go/src/github.com/alphagov/metadata-api/content_api (from $GOPATH)
我猜这是因为我没有安装Go等效的需求?
我的GOPATH
已经定好了:
metadata-api$ echo $GOPATH
/Users/me/go
Go可执行文件在
metadata-ape$ echo $PATH
....:/Users/me/go/bin
我要怎么做才能帮你找到这些包裹?