laminas / laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration
https://docs.laminas.dev/laminas-component-installer/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Ignored components from `component-ignore-list` are being logged as "already registered" #56

Open boesing opened 2 years ago

boesing commented 2 years ago

Bug Report

Q A
Version(s) 3.0.0

Summary

So the feature works, just the CLI output is incorrect as it is not already registered.

Current behavior

Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing whatever/excluded-component (dev-master 59966a6): Extracting archive
    Installing NamespaceFromModule from package whatever/excluded-component
    Package is already registered; skipping

How to reproduce

Require a component via composer require but have that component ignored by the composer.extra entry:

{
     "extra": {
         "laminas": {
             "component-ignore-list": ["vendor/component-name"]
         }
     }
}

Expected behavior

Instead of writing Package is already registered; skipping to the CLI output, I'd expect something like Package is ignored by project configuration; skipping.