尝试将Go项目部署到Google App Engine(标准环境)时遇到问题。尝试运行gcloud app deploy
时,所有.go
文件都被复制到存储桶中,但此后出现错误:
Staging second-gen Standard app: failed to bundle to c:\users\user\appdata\local\temp\tmprhpsm3\tmp6w7zeo: unable to copy directory ..\framework to _gopath\framework: unable to read dir "..\\framework": open ..\framework: The system cannot find the file specified.
framework
代表本地软件包名称。软件包导入似乎是一个问题,我找不到解决该问题的方法。
任何帮助将不胜感激!
编辑
该问题已通过某种方式自行解决。我对GOPATH
进行了一些更正,但是最终的解决方案使用了默认的GOPATH
值。