首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Composer更新/降级无关包

Composer更新/降级无关包
EN

Stack Overflow用户
提问于 2022-07-28 09:18:18
回答 1查看 212关注 0票数 0

我尝试将包amasty/module-fpc-warmer更新为2.4.6

尝试:

代码语言:javascript
运行
复制
$ composer require amasty/module-fpc-warmer:2.4.6

Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Loading composer repositories with package information                                                                                                                                 Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install amasty/module-fpc-warmer 2.4.6
    - Installation request for amasty/module-fpc-warmer 2.4.6 -> satisfiable by amasty/module-fpc-warmer[2.4.6].
    - Conclusion: don't install amasty/base 1.12.15
    - amasty/module-fpc-warmer 2.4.6 requires amasty/base >=1.13.4 -> satisfiable by amasty/base[1.13.4, 1.13.5].
    - Can only install one of: amasty/base[1.12.15, 1.13.4].
    - Can only install one of: amasty/base[1.12.15, 1.13.5].
    - Can only install one of: amasty/base[1.12.15, 1.13.5].
    - Installation request for amasty/base (locked at 1.12.15) -> satisfiable by amasty/base[1.12.15].


Installation failed, reverting ./composer.json to its original content.

上面写着amasty/module-fpc-warmer 2.4.6 requires amasty/base >=1.13.4

因此,我尝试首先将amasty/base更新为1.13.4,但这也更新/降级了许多其他与bsscommerce/customer-approval完全无关的扩展。

代码语言:javascript
运行
复制
$ composer require amasty/base:1.13.4

Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Loading composer repositories with package information                                                                                                                                 Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Package operations: 4 installs, 16 updates, 0 removals
  - Updating amasty/base (1.12.16 => 1.13.4): Downloading (100%)
  - Updating amasty/aminvisiblecaptcha (2.4.1 => 2.4.5): Loading from cache
  - Updating amasty/advanced-review (1.14.11 => 1.15.2): Loading from cache
  - Updating amasty/module-google-customer-reviews (1.0.0 => 1.0.1): Loading from cache
  - Downgrading bsscommerce/customer-approval (1.1.5 => 1.1.4): Loading from cache
  - Downgrading symfony/console (v4.4.33 => v4.4.30): Loading from cache
  - Downgrading laminas/laminas-filter (2.12.0 => 2.11.1): Loading from cache
  - Downgrading guzzlehttp/promises (1.5.1 => 1.5.0): Loading from cache
  - Downgrading composer/ca-bundle (1.3.1 => 1.2.11): Loading from cache
  - Updating fooman/pdfcore-m2 (19.13.2 => 19.14.0): Loading from cache
  - Updating fooman/pdfcustomiser-implementation-m2 (116.6.1 => 116.8.0): Loading from cache
  - Updating fooman/pdfcustomiser-m2 (8.6.1 => 8.6.3)
  - Updating sendinblue/module-sendinblue (2.1.9 => 2.1.16): Loading from cache
  - Installing rosell-dk/exec-with-fallback (1.2.0): Loading from cache
  - Installing rosell-dk/file-util (0.1.1): Loading from cache
  - Installing rosell-dk/locate-binaries (1.0): Loading from cache
  - Installing rosell-dk/image-mime-type-sniffer (1.1.1): Loading from cache
  - Updating rosell-dk/image-mime-type-guesser (0.3.1 => 1.1.1): Loading from cache
  - Updating rosell-dk/webp-convert (2.6.0 => 2.9.2): Loading from cache
  - Updating yireo/magento2-next-gen-images (0.2.10 => 0.2.13): Loading from cache

为什么它要更新/降级无关的包,我如何才能阻止它这样做?

我只想用它们的依赖项更新amasty/baseamasty/module-fpc-warmer

EN

回答 1

Stack Overflow用户

发布于 2022-07-28 12:39:18

我想我找到了原因。

我们使用的是主程序和暂存分支,而暂存分支(出现问题的地方)使用的是来自主的composer.lock,因为在合并冲突时,我选择了git checkout --theirs .

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73150286

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档