Skip to content

Optimizer fails when deploy is started from project root #37

@HyperBrain

Description

@HyperBrain

The optimizer will fail if you run a sls function deploy -a from the project root and have multiple function roots in a deeper level. It does not find the inclusion paths.

It seems the plugin does not use the magic handler strategy to find the function root from the function definitions.

If you start the deploy from the function root, it works as expected.

@doapp-ryanp I suggest that the plugin uses SLS Project to get the function root and sets its CWD to there and then executes all the stuff. Then it should work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions