前提・実現したいこと
Google Cloud のチュートリアル Bookshelfの Gcloud app deploy をしたい
発生している問題・エラーメッセージ
Google app deploy を実行すると、以下のエラーメッセージが表示され、実行できない。
ERROR: (gcloud.app.deploy) Staging command [/Users/user/Downloads/google-cloud-sdk/platform/google_appengine/go-app-stager /Users/user/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/app/app.yaml /Users/user/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/app /var/folders/b7/3cjj6pcd6z3d_gydhmh74_l80000gn/T/tmpv7KWYi/tmpej7r3c] failed with return code [1]. ------------------------------------ STDOUT ------------------------------------ ------------------------------------ STDERR ------------------------------------ 2018/08/14 00:37:13 staging for go1.10 2018/08/14 00:37:13 failed analyzing /Users/user/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/app: cannot find package "cloud.google.com/go/pubsub" in any of: ($GOROOT not set) /Users/user/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/src/cloud.google.com/go/pubsub (from $GOPATH) GOPATH: /Users/user/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf --------------------------------------------------------------------------------
試したこと
.bash_profileのGoPathを変更してみた。
export $GOPATH = /Users/user/src/github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf
エラーメッセージの $GOROOT not set の部分がいまいち分からず困っています。
ご助言お願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。