我有一个google云函数,它是存储库中的一个子目录。它使用设置菜单中的"Directory with source code“选项。在部署时,我一直收到这个错误:
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模块的替换功能。我是不是做错了什么?
指