Golang function triggers "no such file or directory" when mountCode -> True
还没有人认领这个 Issue。
评估
调研方向
首先使用启用 mountCode、event.json 以及位于 /var/task/bin/adaptor-k8s 的 Go 二进制文件重现 serverless invoke 命令;将其与禁用 mountCode 时正常工作的情况进行比较。跟踪插件对 mountCode 的处理,并验证调用函数时不再报告 fork/exec "no such file or directory" 错误。
由索引模型根据 Issue 内容生成。
描述
I'm trying to invoke a function locally using localstack and a Golang binary as a handler.
If I mount the directory (mountCode: True), I get the following message when doing the invoke:
# serverless invoke --function hello -p event.json
Serverless: Using serverless-localstack
{
"errorMessage": "RequestId: b669e3f0-8ff3-1b84-748d-066ac5b8578e Error: fork/exec /var/task/bin/adaptor-k8s: no such file or directory",
"errorType": "exitError"
}
If I set mountCode: False, the function works without issues.
- 主要语言
- JavaScript
- 星标
- 542
- 派生
- 92
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
localstack/serverless-localstack 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 58/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 42/100
-
aws:apigateway status: backlog
难度 4/5 3-5 天 新手友好度 35/100
localstack/serverless-localstack#270 · 3 个 reaction ·
查看 localstack/serverless-localstack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
palladius/rails8-app-on-gcp#145 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
难度 2/5 1-3 小时 新手友好度 65/100
web-platform-tests/interop#1455 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
corsairdev/corsair#1764 ·
-
难度 2/5 1-3 小时 新手友好度 75/100