localstack / localstack/serverless-localstack
Golang function triggers "no such file or directory" when mountCode -> True
オープン
まだ誰も着手していません。
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、mountCodeを有効にし、event.jsonと/var/task/bin/adaptor-k8sにあるGoバイナリを使ってserverless invokeコマンドを再現します。mountCodeを無効にした動作するケースと比較します。pluginによるmountCodeの処理を追跡し、関数の呼び出し時にfork/exec "no such file or directory"エラーが報告されなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100