composer discard changes: what do the [y,n,v,d,s,?] do

后端 未结 2 955
青春惊慌失措
青春惊慌失措 2021-01-30 09:46

Simple question that\'s been bugging me for months.

Occasionally I\'ll dive into the vendors directory to fix a bug (especially for our internal libs). After migrating a

2条回答
  •  臣服心动
    2021-01-30 10:29

    If you run with the --no-interaction, you can set discard-changes: true in composer.json file and you wont get prompted for this option every time.

    Or, run:

    COMPOSER_DISCARD_CHANGES=true composer install --no-interaction

提交回复
热议问题