Erro de tempo de execução do Composer ao excluir subdiretórios

1

Estou executando 'composer install' no meu servidor e, em seguida, usando o recurso de script para excluir todos os subdiretórios chamados '.git', mas estou executando o seguinte erro de composição.

Delete all .git dirs
find: 'vendor/ajbdev/authorizenet-php-api/.git': No such file or directory
find: 'vendor/aura/installer-default/.git': No such file or directory
find: 'vendor/buyplaytix/phantomjs-test/.git': No such file or directory
find: 'vendor/composer/composer/.git': No such file or directory
find: 'vendor/illuminate/support/Illuminate/Support/.git': No such file or directory
find: 'vendor/illuminate/events/Illuminate/Events/.git': No such file or directory
find: 'vendor/ircmaxell/password-compat/.git': No such file or directory
find: 'vendor/predis/predis/.git': No such file or directory
find: 'vendor/symfony/process/Symfony/Component/Process/.git': No such file or directory
find: 'vendor/symfony/console/Symfony/Component/Console/.git': No such file or directory
find: 'vendor/symfony/yaml/Symfony/Component/Yaml/.git': No such file or directory
find: 'vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/.git': No such file or directory
find: 'vendor/symfony/finder/Symfony/Component/Finder/.git': No such file or directory
find: 'vendor/twig/twig/.git': No such file or directory
Script find vendor/*/ -name .git -type d -exec rm -rf {} \; handling the post-install-cmd event returned with an error



[RuntimeException]                                                                                         
Error Output: find: 'vendor/ajbdev/authorizenet-php-api/.git': No such file or directory                   
find: 'vendor/aura/installer-default/.git': No such file or directory                                      
find: 'vendor/buyplaytix/phantomjs-test/.git': No such file or directory                                   
find: 'vendor/composer/composer/.git': No such file or directory                                           
find: 'vendor/illuminate/support/Illuminate/Support/.git': No such file or directory                       
find: 'vendor/illuminate/events/Illuminate/Events/.git': No such file or directory                         
find: 'vendor/ircmaxell/password-compat/.git': No such file or directory                                   
find: 'vendor/predis/predis/.git': No such file or directory                                               
find: 'vendor/symfony/process/Symfony/Component/Process/.git': No such file or directory                   
find: 'vendor/symfony/console/Symfony/Component/Console/.git': No such file or directory                   
find: 'vendor/symfony/yaml/Symfony/Component/Yaml/.git': No such file or directory                         
find: 'vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/.git': No such file or directory  
find: 'vendor/symfony/finder/Symfony/Component/Finder/.git': No such file or directory                     
find: 'vendor/twig/twig/.git': No such file or directory                  

Estou executando isso usando o seguinte comando

"scripts": {
    "post-update-cmd": ["echo Delete all .git dirs", "find vendor/*/ -name .git -type d -exec rm -rf {} \;"],
    "post-install-cmd": ["echo Delete all .git dirs", "find vendor/*/ -name .git -type d -exec rm -rf '{}' \;"]
}                                 

Alguém pode me ajudar com isso, por favor?

    
por Jen Zhang 01.02.2014 / 20:14

0 respostas