php-jenkins icon indicating copy to clipboard operation
php-jenkins copied to clipboard

Why do we need ignore composer.lock ?

Open tucq88 opened this issue 8 years ago • 1 comments

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

tucq88 avatar Nov 15 '16 10:11 tucq88

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.lock ignored in .gitignore?
    • No
      • run composer install
    • Yes
      • remove composer.lock (from previous run)
      • run composer update

modess avatar Nov 17 '16 06:11 modess