symfony/symfony — Issue #2986: Post vendor install destroys svn folders
Author: hrbonz
Created: 2011-12-29 09:58:34+00:00
State: open

so I get my project to ignore vendor/ as it is not a folder that is managed by me (the developer).
Problem, when I checkout my project and install vendors, the end of the process looks like this :
$ php bin/vendors install
[...]
Installing assets for Symfony\Bundle\FrameworkBundle into /home/user/public_html/symfony/web/bundles/framework
Installing assets for Acme\DemoBundle into /home/user/public_html/symfony/web/bundles/acmedemo
Installing assets for Symfony\Bundle\WebProfilerBundle into /home/user/public_html/symfony/web/bundles/webprofiler
Installing assets for Sensio\Bundle\DistributionBundle into /home/user/public_html/symfony/web/bundles/sensiodistribution
Clearing the cache for the dev environment with debug true

I guess that these last steps destroy the bundle folders that were already there, as a result my svn repo is **b0rked** :
$ svn status
~ web/bundles/sensiodistribution
~ web/bundles/webprofiler
~ web/bundles/acmedemo
~ web/bundles/framework

I won't even try to repair that, I will add svn:ignore properties on `web/bundle` but this should **NEVER** happen.

I suggest preserving the folders if they are alreay here and only replace the files and update the [documentation](http://symfony.com/doc/current/book/installation.html#ignoring-the-vendor-directory) to suggest adding those guys in ignore.