composer/composer — Issue #356: Destination path already exists after failed installation
Author: timheil
Created: 2012-02-23 16:33:31+00:00
State: open

After failed installation attempts due to bad configuration (.zip format on an example URL in my case), Composer should try to clean up any files that might have been stored within the vendors pathes. As it didn't, after fixing the configuration git was not able to clone the repository and Composer crashs with a RuntimeException:

Failed to execute git clone '...' '...' && cd '...' && git checkout '...' && git reset --hard '...'

where it would be nice of Composer to evaluate the actual step of failure and report an error explaining possible reasons, or better assure a clean VCS state before installing/updating, and clear up failed installations.