#9498 feat(cli): Log a more detailed reason for skipping a plugin's installation
Pull request opened by
edgarrmondragon
## Description
For this project
version: 1
default_environment: dev
environments:
- name: dev
plugins:
extractors:
- name: tap-fedidb
variant: edgarrmondragon
pip_url: tap-fedidb
- name: tap-fedidb--child
inherit_from: tap-fedidb
the output is
$ meltano install
2025-09-12T17
3925.308381Z [info ] Installing 2 plugins
2025-09-12T17
3925.308623Z [info ] Skipped installing extractor 'tap-fedidb--child'. Plugin 'tap-fedidb--child' does not require installation: reusing parent virtualenv.
2025-09-12T17
3925.315321Z [info ] Installing extractor 'tap-fedidb'
2025-09-12T17
3925.462257Z [info ] Installed extractor 'tap-fedidb'
2025-09-12T17
3925.462751Z [info ] Installed 1/2 plugins
2025-09-12T17
3925.462841Z [info ] Skipped installing 1/2 plugins
And for this project
version: 1
default_environment: dev
environments:
- name: dev
plugins:
extractors:
- name: tap-fedidb
variant: edgarrmondragon
pip_url: tap-fedidb
- name: tap-fedidb--child
pip_url: tap-fedidb python-json-logger # notice this is different
inherit_from: tap-fedidb
this is the output
$ meltano install
2025-09-12T17
4130.763630Z [info ] Installing 2 plugins
2025-09-12T17
4130.770836Z [info ] Installing extractor 'tap-fedidb'
2025-09-12T17
4130.784475Z [info ] Installing extractor 'tap-fedidb--child'
2025-09-12T17
4130.855497Z [info ] Installed extractor 'tap-fedidb--child'
2025-09-12T17
4130.855824Z [info ] Installed extractor 'tap-fedidb'
2025-09-12T17
4130.855945Z [info ] Installed 2/2 plugins
## Related Issues
• Closes
#6501
## Summary by Sourcery
Use pattern matching for install status handling and enhance skip logic to include explicit reasons in logs
New Features:
• Log detailed skip reasons when a plugin’s installation is skipped
Enhancements:
• Refactor plugin status verb resolution and logging to use pattern matching
• Update _requires_install to return a message describing why installation was skipped
• Streamline plugin install summary by introducing a total count for reporting
meltano/meltano