PHP-CS-Fixer: Composer update fails because of uncommitted changes
[composer] - Updating friendsofphp/php-cs-fixer dev-master (6674476 => 0bd436b)
[composer]
[composer]
[composer] [RuntimeException]
[composer] Source directory /home/jenkins/workspace/myproject/vendor/friendsofphp/php-cs-fixer has uncommitted changes.
[composer]
[composer]
[composer] Exception trace:
[composer] () at phar:///home/jenkins/workspace/myproject/composer.phar/src/Composer/Downloader/VcsDownloader.php:209
running git status in the vendors dir:
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: tests/Fixtures/Integration/set/@PSR2_whitespaces.test-out.php
# modified: tests/Fixtures/Integration/set/@Symfony_whitespaces.test
# modified: tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php
Any idea why do we have such test files in the vendor dir.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (10 by maintainers)
The problem occurs when running composer in no interaction mode:
The workaround that I’ve found so far is to discard all changes on vendor in
composer.json:I had this error which I resolved by just deleting vendor directory and ‘make composer install’
Don’t think this is a bug with us tbh.