webman目录下,composer update 升级后,workerman升级到4.1,但是把我的redis-queue给删除了?

roczyl

composer update 升级后,workerman升级到4.1,但是把我的redis-queue给删除了?
config\plugin\webman\redis-queue
这个目录都丢了。

781 1 0
1个回答

walkor

升级workerman不会删除配置

  • roczyl 2022-08-23

    composer update workerman/webman-framework

    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 0 installs, 1 update, 0 removals

    • Upgrading workerman/webman-framework (v1.4.3 0f4d5b6 => v1.4.3)
      Writing lock file
      Installing dependencies from lock file (including require-dev)
      Package operations: 0 installs, 4 updates, 3 removals
    • Downloading workerman/workerman (v4.0.41)
    • Downloading webman/think-orm (v1.0.6)
    • Downloading yzh52521/webman-throttle (v1.0.7)

      support\Plugin::uninstall

    • Removing workerman/redis-queue (v1.0.9)

      support\Plugin::uninstall

    • Removing workerman/redis (v1.0.11)

      support\Plugin::uninstall

    • Removing webman/redis-queue (v1.2.4)
    • Downgrading workerman/workerman (v4.0.42 => v4.0.41): Extracting archive
    • Upgrading workerman/webman-framework (v1.4.3 0f4d5b6 => v1.4.3): Extracting archive
    • Downgrading webman/think-orm (v1.0.7 => v1.0.6): Extracting archive
    • Downgrading yzh52521/webman-throttle (v1.0.8 => v1.0.7): Extracting archive

      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 the composer fund command to find out more!

  • roczyl 2022-08-23

    composer update workerman/workerman

    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 0 installs, 1 update, 0 removals

    • Upgrading workerman/workerman (v4.0.41 => v4.1.0)
      Writing lock file
      Installing dependencies from lock file (including require-dev)
      Package operations: 0 installs, 3 updates, 3 removals

      support\Plugin::uninstall

    • Removing workerman/redis-queue (v1.0.9)

      support\Plugin::uninstall

    • Removing workerman/redis (v1.0.11)

      support\Plugin::uninstall

    • Removing webman/redis-queue (v1.2.4)
    • Upgrading workerman/workerman (v4.0.42 => v4.1.0): Extracting archive
    • Downgrading webman/think-orm (v1.0.7 => v1.0.6): Extracting archive
    • Downgrading yzh52521/webman-throttle (v1.0.8 => v1.0.7): Extracting archive

      support\Plugin::install
      support\Plugin::install
      support\Plugin::install
      Generating autoload files
      20 packages you are using are looking for funding.
      Use the composer fund command to find out more!

    为啥升级的时候会自动删除其他的,而且还把其他包降级了?

  • walkor 2022-08-23

    composer 不会愚蠢到随便降级删包。如果出现包被删除和降级,很可能是因为之前安装了某个包,但是后面composer.json composer.lock被不小心还原了(比如提交到了版本库被reset了),再次升级时composer就会删除或降级它们。

  • ichynul 2022-08-23

    Removing webman/redis-queue (v1.2.4).这个包被溢出来,相关配置也移除。
    检查一下composer.json里面有没有这个包。

    而且好像同时装了两个redis-queue:
    workerman/redis-queue (v1.0.9)
    webman/redis-queue (v1.2.4)

  • roczyl 2022-08-23

    composer why workerman/redis-queue
    webman/redis-queue v1.2.4 requires workerman/redis-queue (^1.0)

  • roczyl 2022-08-23

    好像是composer.json里没有那个包了,
    composer show 里面又有,
    奇怪,怎么会丢失了?

年代过于久远,无法发表回答
🔝