Composer更新/降级不相关的包



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

尝试:

$ 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

$ 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

我想我找到了原因。

我们使用了一个master和一个staging分支,而staging分支(问题发生的地方(使用了master中的composer.lock,因为我用git checkout --theirs .选择了它,因为存在合并冲突。

相关内容

  • 没有找到相关文章

最新更新