【发布时间】:2019-01-30 06:30:13
【问题描述】:
我有一个谷歌云功能,它是存储库中的一个子目录。它使用设置菜单中的“带有源代码的目录”选项。我在部署时不断收到此错误:
Deployment failure:
Build failed: go: parsing /utils/pubsub/go.mod: open /utils/pubsub/go.mod: no such file or directory
go: error loading module requirements
我假设 GCF 不会将整个目录上传到实例,而是只上传文件夹?这破坏了 Go 模块的替换功能。是不是我做错了什么?
回购链接:https://github.com/FreekingDean/jeffbotgo/tree/5d735cc/slackevent
【问题讨论】:
标签: go google-cloud-functions go-modules