dougouqin0763 2017-08-12 20:04
浏览 44

关于GoLang AppEngine SDK使用哪种路径的完全困惑

I'm having trouble referencing the AppEngine SDK.

After installing Google Cloud SDK, I'm using:

gcloud components install app-engine-go

to install the most recent version of the AppEngine SDK for Go, and afterwards I'm seeing 2 directories:

/usr/local/google-cloud-sdk /Users/kieran/google-cloud-sdk

The first contains the AppEngine SDK files, the second does not.

In the PATH I'm seeing:

# The next line updates PATH for the Google Cloud SDK. if [ -f ‘/Users/kieran/google-cloud-sdk/path.bash.inc' ]; then source '/Users/kieran/google-cloud-sdk/path.bash.inc'; fi

# The next line enables shell command completion for gcloud. if [ -f '/Users/kieran/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/kieran/google-cloud-sdk/completion.bash.inc'; fi

Why is the gcloud installer adding a reference in the PATH to the google-cloud-sdk that does not contain the AppEngine SDK ?

I have read many different articles on here but they all mention a manually downloaded AppEngine SDK, and according to other articles even using "google.golang.org/appengine" is not good enough as it's not always the latest version.

How do I reference the AppEngine SDK that was downloaded by the glcoud installer? With 2 different SDK paths I'm totally confused about which one to use, and even how to reference it in code. I would assume that "appengine" would be sufficient, but that isn't working.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?