-
Notifications
You must be signed in to change notification settings - Fork 9.4k
add vendor directory to .gitignore #414
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
Conversation
# never ever put your vendor directory into your vcs
@Flyingmana why do i need to put the directory in gitignore? if i don't use folder name "vendor"? :) |
because magento starts to use composer and in future sure will use it to install libraries and so on. composer puts all this libraries and so on inside the vendor directory. So if you use Composer, you will need to ignore the directory composer uses. (thats configurable, vendor is only the default used one) Is this enough as an answer? |
@Flyingmana, it is enough as an answer, does it make more sense to add it into .gitignore after officially Composer will be introduced within magento packages? |
we have already an composer.json so now is a good time for adding also the vendor directory to .gitignore |
This Magento2 composer.json should not be treated as the root project and therefore you have to avoid putting vendor into this .gitignore. Create your own root composer.json/repository and add there vendor to your gitignore and make Magento2 as a required module. That setup makes it also easy to update Magento2 to different versions. |
I see, but commonly the unit-tests should work outside the context of a project. |
@Flyingmana , thank you for reporting this issue! We are considering using Composer in Magento 2. Please watch the most fresh code we are deploying each Friday to the GitHub for updates. |
The team processed this pull request and added vendor directory to .gitignore. We are closing this ticket now. Thanks again for your contribution! |
…dmin-ui-plugins CABPI-227: Refactor admin UI plugins
never ever put your vendor directory into your vcs