php-jenkins
php-jenkins copied to clipboard
Why do we need ignore composer.lock ?
As the title, I pretty confuse why your build have that check. By that, build may install different packages that ran in local => may cause random bug
You do not need to have the lock file ignored in your repository. The tool will check if the lock file is ignored in your .gitignore. The steps it performs are:
- Is
composer.lockignored in.gitignore?- No
- run
composer install
- run
- Yes
- remove
composer.lock(from previous run) - run
composer update
- remove
- No