-
Notifications
You must be signed in to change notification settings - Fork 293
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
Using exclude
with no include
fails
#16
Comments
May be related to some of the code being discussed in #15 - should probably be split from the docker user PR if relevant. |
Hmm. That's curious. Could you provide an example or provide more specific direction on how to duplicate this issue. I can't seem to duplicate the issue. Here's the service I used (simply the default aws-python template with requests & this plugin added. https://gist.github.com/dschep/1f2225b7c075e646357adc7ed3593b85 |
Your example needs an active package: exclude statement |
Perfect. Thank you. Fixed and released as |
Thanks! |
I'm still having this issue in I had to add a |
@cdimitroulas are you using the zip option? looking at the code that code path would have this bug I think. |
I have a fix coming up, working on the test case right now. |
PR submitted. |
With serverless-python-requirements@2.0.0.
If no
include:
directive is found, deploy triggers a failure.https://github.com/UnitedIncome/serverless-python-requirements/blob/7044eeb46c5c0f6c8e74c46d68f36dba5dc6dfff/index.js#L83-L84
Example serverless.yml
Output
Running
SLS_DEBUG=* serverless deploy
:Workaround
Add an
include:
with any file you expect to always be part of your deployment package:The text was updated successfully, but these errors were encountered: