-
Notifications
You must be signed in to change notification settings - Fork 34
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
Exclude directories from the Composer archive #58
Conversation
This results in a lighter package when it is installed in `vendor` in consuming projects. This makes a difference on AWS Lambda where the package size is limited, and a smaller package implies better performances for cold starts. See https://madewithlove.com/gitattributes/ for more information.
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
=========================================
Coverage 97.96% 97.96%
Complexity 253 253
=========================================
Files 18 18
Lines 639 639
=========================================
Hits 626 626
Misses 13 13 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mnapoli, this is handy. I didn't know that it also affects the composer releases.
Only one thing though: Can you remove the bin/ directory from .gitattributes, because bin/fcgiget gets linked on composer install, so this would be a BC break, see: https://github.com/hollodotme/fast-cgi-client/blob/v3.1.1/composer.json#L20
As discussed with @mnapoli via DM:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, see conversation
Thank you! |
Proposed Changes
This results in a lighter package when it is installed in
vendor
in consuming projects. This makes a difference on AWS Lambda where the package size is limited, and a smaller package implies better performances for cold starts.See https://madewithlove.com/gitattributes/ for more information.