composer update (install step removed packages) fails because plugin-installer invokes autoloader
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- php
- 領域
- build-system
調査の方向性
Start by tracing plugin-installer’s Composer install or update hooks and how they load the project autoloader; the issue does not name specific files or tests. Reproduce the Roundcube upgrade with removed dependencies and an installed plugin, then determine whether the failure comes from the hook or Composer’s install sequence. Done means the update completes without attempting to load files from removed packages.
索引モデルが issue の本文から書いたものです。
説明
Hello,
I have received reports of issues when upgrading to roundcube 1.6.0 (e.g. from 1.5.3), when the rcmcarddav plugin is also installed and upgraded during the process in the composer update --no-dev step. This problem will very likely apply with any other roundcube plugin installed using plugin-installer as well.
The problem seems to be the following:
- Some packages that were required by roundcube 1.5 are not required by roundcube 1.6 anymore.
- During the install step of composer update, these packages are removed first.
- When rcmcarddav is upgraded, the plugin code of plugin-installer is invoked. It appears to use the composer autoloader, which at this point apparently has not been updated yet. The autoloader tries to load the files of the packages that have already been removed, causing the process to die.
Running composer update --no-dev --no-plugins shows that the problem does not occur then, which confirms that the autoloader is loaded because of the plugin-installer code. However, I guess the plugin-installer code does some required actions and therefore this is not a valid workaround.
I'm not sure if this is a problem with plugin-installer or with the composer install process itself, i.e. if composer should have updated the autoloader before calling the plugin code first, or whether the plugin code is not supposed to use the autoloader.
A full log of the composer call for reference:
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 6 updates, 4 removals
- Removing endroid/qr-code (1.6.6)
- Removing symfony/polyfill-intl-idn (v1.26.0)
- Removing symfony/polyfill-intl-normalizer (v1.26.0)
- Removing symfony/polyfill-php72 (v1.26.0)
- Locking bacon/bacon-qr-code (2.0.7)
- Locking dasprid/enum (1.0.3)
- Upgrading guzzlehttp/guzzle (6.5.8 => 7.4.5)
- Upgrading guzzlehttp/psr7 (1.9.0 => 2.4.0)
- Upgrading mstilkerich/carddavclient (v1.2.1 => v1.2.2)
- Locking psr/http-factory (1.0.1)
- Upgrading roundcube/carddav (v4.4.1 => v4.4.2)
- Upgrading sabre/vobject (4.4.2 => 4.4.3)
- Locking symfony/deprecation-contracts (v2.5.2)
- Upgrading symfony/yaml (v4.4.43 => v4.4.44)
Writing lock file
Installing dependencies from lock file
Package operations: 4 installs, 5 updates, 4 removals
- Removing symfony/polyfill-php72 (v1.26.0)
- Removing symfony/polyfill-intl-normalizer (v1.26.0)
- Removing symfony/polyfill-intl-idn (v1.26.0)
- Removing endroid/qr-code (1.6.6)
- Installing dasprid/enum (1.0.3): Extracting archive
- Installing bacon/bacon-qr-code (2.0.7): Extracting archive
- Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
- Installing psr/http-factory (1.0.1): Extracting archive
- Upgrading guzzlehttp/psr7 (1.9.0 => 2.4.0): Extracting archive
- Upgrading guzzlehttp/guzzle (6.5.8 => 7.4.5): Extracting archive
- Upgrading sabre/vobject (4.4.2 => 4.4.3): Extracting archive
- Upgrading mstilkerich/carddavclient (v1.2.1 => v1.2.2): Extracting archive
Update of roundcube/carddav failed
8/8 [============================] 100%
In autoload_real.php line 59:
require(/tmp/rcold/roundcube/vendor/composer/../symfony/polyfill-php72/bootstrap.php): failed to open stream: No such file or directory
- 主要言語
- PHP
- スター
- 35
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
roundcube/plugin-installer のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
roundcube/plugin-installer#68 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
roundcube/plugin-installer#58 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 34/100
roundcube/plugin-installer#56 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
roundcube/plugin-installer#55 · コメント 8 件 ·
roundcube/plugin-installer の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
Automattic/static-site-importer#3462 ·
メンテナーはふだん 1 日以内に返信
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpオープンenhancement feature: settings good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/integration_openai#480 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
roundcube/roundcubemail#10468 ·
メンテナーはふだん 1 日以内に返信