Skip to content

Handler path with dot in folder can't find handler #242

@Looveh

Description

@Looveh

If a folder in the multi-folder path to a handler contains a dot the handler won't be found.

Example:

functions:
  my_fn:
    handler: main.out/my_fn.handler"
    events:
      - http:
          path: my_fn
          method: get

Running with:

SLS_DEBUG=* serverless offline --location /path/to/project/

Produces the logs:

...
[offline] Loading handler... (/path/to/project/main)
...

Where it clearly truncates the rest of the handler path after the dot.

This is especially critical in projects where compilation occurs and the target output path may contain dots and can't be controlled outside of the compilation tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions