找不到导入:"google.golang.org/cloud/storage"

can't find import: "google.golang.org/cloud/storage"

我想使用云 api gcloud-golang 所以我进入了 src 文件夹

goapp get google.golang.org/cloud

我可以 "see" liteIDE 中的库,但我不能 goapp serve

我遇到了这个异常

/home/mik/go-programs/src/google.golang.org/cloud/storage/acl.go:21: can't find import: "google.golang.org/api/storage/v1"

2015/03/14 23:13:37 Can't find package "google.golang.org/api/googleapi" in $GOPATH: cannot find package "google.golang.org/api/googleapi" in any of:
    /home/mik/go_appengine/goroot/src/google.golang.org/api/googleapi (from $GOROOT)
    /home/mik/go-programs/src/google.golang.org/api/googleapi (from $GOPATH)
    /home/mik/goroot/pkg/src/google.golang.org/api/googleapi
    /home/mik/go_appengine/src/google.golang.org/api/googleapi
2015/03/14 23:13:37 Can't find package "google.golang.org/api/storage/v1" in $GOPATH: cannot find package "google.golang.org/api/storage/v1" in any of:
    /home/mik/go_appengine/goroot/src/google.golang.org/api/storage/v1 (from $GOROOT)
    /home/mik/go-programs/src/google.golang.org/api/storage/v1 (from $GOPATH)
    /home/mik/goroot/pkg/src/google.golang.org/api/storage/v1
    /home/mik/go_appengine/src/google.golang.org/api/storage/v1
2015/03/14 23:13:37 go-app-builder: build timing: 5×6g (223ms total), 0×gopack (0 total), 0×6l (0 total)
2015/03/14 23:13:37 go-app-builder: failed running 6g: exit status 1

Google 更改了存储库,但我错过了...

google-api-go-client

所以解决方案就是去做,然后一切正常。

go get -u google.golang.org/api/storage/v1