我想使用cloud api gcloud-golang,所以我确实进入了 src文件夹
goapp get google.golang.org/cloud
我可以"看"在liteIDE中的图书馆,但我不能 goapp服务
我得到这个例外
/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
答案 0 :(得分:1)
谷歌已经改变了存储库而我错过了它...
所以解决方案就是去做那件事,并提高工作效率。
go get -u google.golang.org/api/storage/v1