Gcloud组件更新 - >找不到导入 [英] Gcloud components update -> can't find import
问题描述
然而,现在当我尝试部署我们项目使用 gcloud预览应用程序部署。
,我得到以下错误:
找不到导入:github.com/dgrijalva/jwt-go
该行并没有改变,因为它是在更新之前正确部署。我已经尝试了一个 go get -u github.com/dgrijalva/jwt-go
,它工作正常(尽管我不确定本地软件包是否会影响部署无论如何)。任何人都知道这里发生了什么?
显然,gcloud处于go工具的转换状态。它可以在最新版本(Cloud SDK 0.9.57)下与appcfgy.py协同工作。
/ path / to / your / google-cloud-sdk / bin / appcfg。 py update --oauth2< my_module> /app.yaml -A< application id> -V< version>< / p>Our code base has been compiling just fine up until now. Today, gcloud started pestering me with its update message again, so I ran a "gcloud components update" and it updated successfully.
However, now when I try to deploy our project using "gcloud preview app deploy .
", I get the following error:
can't find import: "github.com/dgrijalva/jwt-go"
The line hasn't changed since it was properly deploying before the update. I've already tried a "go get -u github.com/dgrijalva/jwt-go
", which worked (though I'm not sure if local packages affect the deployment anyway). Anyone know what's going on here?
Apparently gcloud is in a state of transition for the go tools. It does work with appcfgy.py under the latest (Cloud SDK 0.9.57).
/path/to/your/google-cloud-sdk/bin/appcfg.py update --oauth2 <my_module>/app.yaml -A <application id> -V <version>
这篇关于Gcloud组件更新 - >找不到导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!