localstack / localstack/serverless-localstack
Golang function triggers "no such file or directory" when mountCode -> True
未关闭
还没有人认领这个 Issue。
configuration
status: backlog
- 主要语言
- JavaScript
- 星标
- 542
- 派生
- 92
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用启用 mountCode、event.json 以及位于 /var/task/bin/adaptor-k8s 的 Go 二进制文件重现 serverless invoke 命令;将其与禁用 mountCode 时正常工作的情况进行比较。跟踪插件对 mountCode 的处理,并验证调用函数时不再报告 fork/exec "no such file or directory" 错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100