composer / composer/installers

Renaming vendor breaks composer install

Open
#519 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1.4k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

**Steps to reproduce:**
1. Use path mapping `"web/app/plugins/{$name}/": ["type:wordpress-plugin"]`
1. Change package name e.g. from `a/my-package` to `b/my-package`
1. `composer remove a/my-package && composer require b/my-package`
1. Run `composer install`

**What happens:**
Composer uninstalls `a/my-package`, then installs `b/my-package`, but as a last step, it removes `my-package` directory (therefore removes the newly installed one)`.

**Expected behaviour:**
Old package will be removed, and new plugin will be installed.

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.