EC-CUBE / ec-cube

EC-CUBE is the most popular e-commerce solution in Japan
https://www.ec-cube.net
Other
736 stars 646 forks source link

composer updateに失敗しているのにプラグインがインストールされている #5270

Open nobuhiko opened 2 years ago

nobuhiko commented 2 years ago

概要(Overview)

composer updateに失敗しているのにプラグインがインストールされる?

期待する内容(Expect) or 要望 (Requirement)

composer updateに失敗したならば、プラグインがインストールされない

再現手順(Procedure)

PHP zip extension が入っていない環境でプラグインをデータ移行プラグインなどをインストールする

[2022-01-18 09:58:20] admin.ERROR [697e8f84] [8789306] [2] [Eccube\Log\Logger:log:64] - Eccube\Exception\PluginException: [12.6MiB/0.99s] Using version ^4.1 for ec-cube/datamigrationcustomerf4 [12.6MiB/0.99s] ./composer.json has been updated [15.2MiB/1.15s] Running composer update ec-cube/datamigrationcustomerf4 --with-dependencies [17.4MiB/1.20s] Loading composer repositories with package information [18.6MiB/2.23s] Dependency "ec-cube/plugin-installer" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies. [19.1MiB/2.90s] Updating dependencies [21.0MiB/3.06s] Lock file operations: 7 installs, 0 updates, 0 removals [21.0MiB/3.06s] - Locking ec-cube/datamigrationcustomerf4 (4.1.0) [21.0MiB/3.06s] - Locking nobuhiko/bulk-insert-query (1.0.0) [21.0MiB/3.06s] - Locking pear/archive_tar (1.4.14) [21.0MiB/3.06s] - Locking pear/console_getopt (v1.4.3) [21.0MiB/3.06s] - Locking pear/pear-core-minimal (v1.10.11) [21.0MiB/3.06s] - Locking pear/pear_exception (v1.0.2) [21.0MiB/3.06s] - Locking wapmorgan/unified-archive (1.1.4) [20.3MiB/3.07s] Writing lock file [20.3MiB/3.07s] Installing dependencies from lock file [23.0MiB/3.10s] Package operations: 7 installs, 0 updates, 2 removals [23.0MiB/3.10s] As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension. [23.0MiB/3.10s] This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. [23.0MiB/3.10s] Installing 'unzip' or '7z' may remediate them. [23.2MiB/3.12s] Uninstall of ec-cube/productoption failed [41.3MiB/8.33s] - Removing ec-cube/contactmanagement4 (1.1.0) [41.4MiB/8.44s] - Installing wapmorgan/unified-archive (1.1.4): Extracting archive [41.5MiB/8.55s] - Installing pear/pear_exception (v1.0.2): Extracting archive [41.5MiB/8.56s] - Installing pear/console_getopt (v1.4.3): Extracting archive [41.6MiB/8.58s] - Installing pear/pear-core-minimal (v1.10.11): Extracting archive [41.6MiB/8.59s] - Installing pear/archive_tar (1.4.14): Extracting archive [41.7MiB/8.63s] - Installing nobuhiko/bulk-insert-query (1.0.0): Extracting archive [41.7MiB/8.64s] - Installing ec-cube/datamigrationcustomerf4 (4.1.0): Extracting archive [41.8MiB/9.53s] Install of wapmorgan/unified-archive failed [40.3MiB/10.72s] Installation failed, reverting ./composer.json and ./composer.lock to their original content. In PluginInstaller.php line 156: プラグインを無効化してください。

環境 (environment)

関連情報 (Ref)

chihiro-adachi commented 2 years ago

@nobuhiko ありがとうございます。

composer updateに失敗しているのにプラグインがインストールされる? プラグイン一覧への表示やapp/Pluginへのファイルの設置はできている状態になりますか?

nobuhiko commented 2 years ago

@chihiro-adachi お問い合わせで来たので正確にはわからないですが、プラグイン一覧への表示やapp/Pluginへのファイルの設置はできている状態になってるみたいです。 プラグインを実行をしたときにcomposerで入るべきファイルが足りなくてシステムエラーになるようです。

chihiro-adachi commented 2 years ago

ありがとうございます。 了解しました。確認してみます。