Skip to content

can not run s local invoke when s.yaml contains layer component #49

@OldManZhang

Description

@OldManZhang

Describe the bug
can not run s local invoke when s.yaml contains layer component.

the senario:

s init start-fc3-python -d demo
cd demo

touch code/requirements.txt
echo "emoji==2.0.0" > code/requirements.txt

# modify index.py,  import emoji 

s build --use-docker
s layer publish --layer-name demo --code ./code --compatible-runtime "python3.10"

# add layer info in s.yaml

# remote deploy success
s deploy

# rm ./code/python , 
s local invoke
# that will prompt error

Desktop (please complete the following information):

OS: macOS 15.1.1
serverless-devs/s: 3.1.6

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