-
Notifications
You must be signed in to change notification settings - Fork 293
Can't use exclusion glob patterns in slimPatterns #372
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
Comments
As far as I understand, I cannot use |
@ptrhck
|
If I do |
Yes, everything in this list will be excluded (ie. matches will be deleted) , So it works like that:
Theoretically you could chain more !(...) to exclude more names, though haven't tested it. |
How can you chain to exclude more names? |
If you are still wondering you can do this |
Currently the
strip
option runs each pattern throughglob-all.glob.sync()
separately:https://github.com/UnitedIncome/serverless-python-requirements/blob/f39e166e8221171ec040ca37fe0f98b6ed89ad75/lib/slim.js#L48-L52
This means we can't make use of the
glob-all
feature giving you exclude patterns.Can this be updated to map all patterns to their
${folderPath}/${pattern}
form and then pass the whole list as one toglob-all.glob.sync()
?I realise that this requires hoisting up the
!
at the start of negation patterns pattern, e.g.needs to be translated (given
folderPath = "/foo/bar/"
) toThe text was updated successfully, but these errors were encountered: