composer update 升級(jí)后,workerman升級(jí)到4.1,但是把我的redis-queue給刪除了?
config\plugin\webman\redis-queue
這個(gè)目錄都丟了。
升級(jí)workerman不會(huì)刪除配置
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!
為啥升級(jí)的時(shí)候會(huì)自動(dòng)刪除其他的,而且還把其他包降級(jí)了?
composer 不會(huì)愚蠢到隨便降級(jí)刪包。如果出現(xiàn)包被刪除和降級(jí),很可能是因?yàn)橹鞍惭b了某個(gè)包,但是后面composer.json composer.lock被不小心還原了(比如提交到了版本庫被reset了),再次升級(jí)時(shí)composer就會(huì)刪除或降級(jí)它們。
Removing webman/redis-queue (v1.2.4).這個(gè)包被溢出來,相關(guān)配置也移除。
檢查一下composer.json里面有沒有這個(gè)包。
而且好像同時(shí)裝了兩個(gè)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)