composer update 升級后,workerman升級到4.1,但是把我的redis-queue給刪除了?
config\plugin\webman\redis-queue
這個目錄都丟了。
升級workerman不會刪除配置
composer update workerman/webman-framework
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
support\Plugin::uninstall
support\Plugin::uninstall
support\Plugin::uninstall
support\Plugin::install
support\Plugin::install
Create start.php
Create windows.php
Create support/bootstrap.php
Create support/helpers.php
support\Plugin::install
support\Plugin::install
Generating autoload files
20 packages you are using are looking for funding.
Use thecomposer fund
command to find out more!
composer update workerman/workerman
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
support\Plugin::uninstall
support\Plugin::uninstall
support\Plugin::uninstall
support\Plugin::install
support\Plugin::install
support\Plugin::install
Generating autoload files
20 packages you are using are looking for funding.
Use thecomposer fund
command to find out more!
為啥升級的時候會自動刪除其他的,而且還把其他包降級了?
composer 不會愚蠢到隨便降級刪包。如果出現(xiàn)包被刪除和降級,很可能是因為之前安裝了某個包,但是后面composer.json composer.lock被不小心還原了(比如提交到了版本庫被reset了),再次升級時composer就會刪除或降級它們。
Removing webman/redis-queue (v1.2.4).這個包被溢出來,相關(guān)配置也移除。
檢查一下composer.json里面有沒有這個包。
而且好像同時裝了兩個redis-queue:
workerman/redis-queue (v1.0.9)
webman/redis-queue (v1.2.4)
composer why workerman/redis-queue
webman/redis-queue v1.2.4 requires workerman/redis-queue (^1.0)