composer / composer/installers

When target location change, data must be moved (not duplicated)

Open
#500 3 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:

Run composer update with the following config:

```
{
"name": "xxx/xxx",
"type": "library",
"require": {
"composer/installers": "^1.0.21",
"prestashop/ps_specials": "^1.0",
}
}
```

and notice module package is installed into `/modules/` directory.

now edit the config to:

```
{
"name": "xxx/xxx",
"type": "library",
"require": {
"composer/installers": "^1.0.21",
"prestashop/ps_specials": "^1.0",
},
"extra": {
"installer-disable": [
"prestashop"
]
}
}
```

and run composer update again. The `prestashop/ps_specials` package is not moved (although vendor contains data about the original location), instead a new copy of it is installed to the standard vendor location.

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.