EC-CUBE / EC-CUBE/ec-cube

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

Open
#5,270 3 comments 0 reactions 0 assignees View on GitHub
Status: needs-review
Dominant language
PHP
Stars
788
Forks
719
Avg merge
4d 4h
Merged PRs (30d)
39

Description

## 概要(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)
+ EC-CUBE: 4.1
+ PHP: 7.3
+ DB:
- PostgreSQL x.x.x
- MySQL x.x.x

## 関連情報 (Ref)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.