我正在尝试部署一个用 Go 编写的 Google Cloud Function。
通过做一些研究,我发现供应商文件比 go.mod 更受欢迎,所以我出售我使用的所有东西(包括一些本地依赖项)并忽略 .gcloudignore 文件中的 go.mod/sum 文件。
问题是尝试部署后,我收到以下错误:
go: nimbus@v0.0.0-00010101000000-000000000000: parsing /nimbus/go.mod: open /nimbus/go.mod: no such file or directory; Error ID: 03a1e2f7
nimbus 是我的本地依赖,它具有以下结构:
我的函数存储库具有以下结构:
我的 go.mod 文件是:
module my_function
go 1.13
require nimbus v0.0.0-00010101000000-000000000000
replace nimbus => ../../../nimbus
我已经尝试过这个解决方案https://stackoverflow.com/questions/5441096。但这并没有解决我的问题。
我已经尝试了一切来解决这个问题,但似乎没有任何效果。
LEATH
青春有我
相关分类