Golang function triggers "no such file or directory" when mountCode -> True
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the serverless invoke command with mountCode enabled, event.json, and the Go binary at /var/task/bin/adaptor-k8s; compare it with the working mountCode-disabled case. Trace the plugin's mountCode handling and verify that invoking the function no longer reports the fork/exec "no such file or directory" error.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 542
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from localstack/serverless-localstack
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
aws:apigateway status: backlog
Difficulty 4/5 3-5 days Newbie friendliness 35/100
localstack/serverless-localstack#270 · 3 reactions ·
All issues in localstack/serverless-localstack
Similar issues
-
bug customer-eng Durable Agents Inngest status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
AOSSIE-Org/OrgExplorer#253 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100