Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patterns not respected at invoke local #517

Open
dev101 opened this issue Jan 3, 2024 · 0 comments
Open

patterns not respected at invoke local #517

dev101 opened this issue Jan 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dev101
Copy link

dev101 commented Jan 3, 2024

Describe the bug
During sls invoke local files included by individual function's patterns end up in ${ONLY_PREFIX}${functionAlias}/ folder.

To Reproduce

  1. Specify some files to be included in individual function's package.patterns
  2. Run sls invoke local
  3. Inspect output work folder to see __only_ folder with included files.

Expected behavior
All included files in the same folder similar to sls package output.

Versions:

  • OS: Windows
  • Serverless Framework Version: 3.38.0
  • Plugin Version: 1.50.1

Additional context
Seems like the same filtering logic applied for sls package (see #246) should be used during sls invoke local.

@dev101 dev101 added the bug Something isn't working label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant