-
Notifications
You must be signed in to change notification settings - Fork 68
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
Please exclude the .git folder from the composer builds #171
Comments
I don't think there's a way to do that. When Composer pulls down packages from Packagist, it's cloning Git repos. That will always come with a .git folder. So I think it would be better for you to fix your project structure to not include your vendor folder in the committed code. |
I'm also not sure this is possible due to the way composer works. If it is, I'm happy to accept a PR that does this as it seems rather inefficient if composer holds the entire project history for every package it downloads. |
This is a user-end setting. In your composer.json define how you wish dependencies to install as one of "source", "dist" or "auto" (default).
If you were to examine the "packages" element of the composer.lock you'll find something like the following. (Note the "type": "zip" under "dist"):
|
Hi there. Can you please exclude your .git folder from the composer build. I am (not ideally) including my vendors folder in my git source control and the .git folder in the composer install is clashing. Also, I am eagerly awaiting an undated release, there are changes on you dev-master that I am leaning on in production :) really appreciate your hard work.
The text was updated successfully, but these errors were encountered: