Skip to content

Golang function triggers "no such file or directory" when mountCode -> True #129

@kmai

Description

@kmai

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions