本文介绍了如何避免作曲者丢弃更改消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过作曲家更新symfony verdors。我总是使用:

  php composer.phar update 

但是最新版本的composer,在更新每个包之前会显示如下信息:

   - 更新doctrine / data-fixtures dev-master(a95d783 => a28b6bd)
软件包已修改文件:
M .gitignore
M .gitmodules
M LICENSE
M README.md
M UPGRADE
M composer.json
M lib / Doctrine / Common / DataFixtures / AbstractFixture.php
M lib / Doctrine / Common / DataFixtures / DependentFixtureInterface.php
M lib / Doctrine / Common / DataFixtures / Event / Listener / MongoDBReferenceListener.php
M lib / Doctrine / Common / DataFixtures / Event / Listener / ORMReferenceListener.php

-10更多文件修改,选择v查看完整列表
丢弃更改[y,n, v,s,]。



如何避免此问题?

解决方案

将composer config设为discard更改
(请参阅:) :

  php composer.phar config --global discard- changes true 
pre>

I'm updating symfony verdors via composer. I always do it using:

php composer.phar update

But recent version of composer, before update each package show a message like this:

  - Updating doctrine/data-fixtures dev-master (a95d783 => a28b6bd)
The package has modified files:
M .gitignore
M .gitmodules
M LICENSE
M README.md
M UPGRADE
M composer.json
M lib/Doctrine/Common/DataFixtures/AbstractFixture.php
M lib/Doctrine/Common/DataFixtures/DependentFixtureInterface.php
M lib/Doctrine/Common/DataFixtures/Event/Listener/MongoDBReferenceListener.php
M lib/Doctrine/Common/DataFixtures/Event/Listener/ORMReferenceListener.php

-10 more files modified, choose "v" to view the full list Discard changes [y,n,v,s,?]?

How to avoid this?

解决方案

Set composer config to discard changes(see: https://github.com/composer/composer/pull/1188):

php composer.phar config --global discard-changes true

这篇关于如何避免作曲者丢弃更改消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 20:14