问题描述
更新到Composer 2.0之后,我在使用Travis时遇到了问题。
我有一个TYPO3扩展,我想用多个TYPO3版本进行测试。到昨天为止,我可以使用const
(来自Matrix版本)进行此操作。
更新后,我得到以下错误/信息。
composer require nimut/typo3-complete:$TYPO3_VERSION
由于我的存储库中没有composer.lock,因此我先使用Cannot update only a partial set of packages without a lock file present.
Installation failed,reverting ./composer.json to its original content.
测试了管道,然后进行了更新。一切都很好,直到我转到下一个版本为止,因为依赖关系不同,并且composer install
中的composer.lock无法更新其他依赖关系。
我已经用composer install
尝试了作曲家的回复:
composer require --dev nimut/typo3-complete:^10.4 --with-all-dependencies
Problem 1
- typo3/testing-framework is locked to version 4.15.2 and an update of this package was not requested.
- typo3/testing-framework 4.15.2 requires typo3/cms-backend ^9.3 -> found typo3/cms-backend[v9.3.0,...,9.5.x-dev] but it conflicts with another require.
Problem 2
- symfony/http-client v5.1.7 requires symfony/http-client-contracts ^2.2 -> found symfony/http-client-contracts[dev-main,dev-master,v2.2.0,v2.3.1,2.3.x-dev (alias of dev-master)] but it conflicts with another require.
- nunomaduro/phpinsights v1.14.0 requires sensiolabs/security-checker ^6.0 -> satisfiable by sensiolabs/security-checker[v6.0.3].
- sensiolabs/security-checker v6.0.3 requires symfony/http-client ^4.3|^5.0 -> satisfiable by symfony/http-client[v5.1.7].
- nunomaduro/phpinsights is locked to version v1.14.0 and an update of this package was not requested.
Use the option --with-all-dependencies (-W) to allow upgrades,downgrades and removals for packages currently locked to specific versions.
选项是我已经尝试的选项。我已经尝试过-W
和-w
,到目前为止还没有运气。
我不确定如何解决此问题,您的输入将非常有帮助。
链接到-W
https://github.com/AOEpeople/crawler/blob/master/.travis.yml#L50
链接到Travis Build进行测试。 https://travis-ci.org/github/AOEpeople/crawler/jobs/738603105#L1138
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)