GitHub
07/18/2025, 5:01 PMmeltano add now updates existing plugins by default
Pull request opened by edgarrmondragon
## Description
meltano add now updates the existing plugin definition in meltano.yml. This is in line with, for example, how uv add works.
## Related Issues
• #9390
• #3380
## Summary by Sourcery
Enable the meltano add command to update existing plugins by default and unify flag handling across the add workflow.
New Features:
• Add --update/--no-update flag (defaulting to update) to meltano add so existing plugins are updated by default
Enhancements:
• Introduce add_with_flags method and AddedPluginFlags enum to signal added, updated, or not added status
• Refactor add_to_file to support in-place updates and return status flags
• Update print_added_plugin to use status flags for messaging
• Change default plugin variant name from "original" to "default"
Tests:
• Adjust tests to expect update behavior and new messages for added or updated plugins
## Summary by Sourcery
Make the meltano add command idempotent by updating existing plugins by default and unify flag handling across the add workflow
New Features:
• Add --update/--no-update flag (default enabled) to meltano add so existing plugins are updated instead of erroring
• Make meltano add idempotent: rerunning the command on an existing plugin refreshes its definition without overwriting user configuration
Enhancements:
• Introduce AddedPluginFlags enum to signal ADDED, UPDATED, or NOT_ADDED outcomes
• Refactor add_to_file into add_to_file_with_flags to return status flags and support in-place updates
• Add add_with_flags method in ProjectAddService and delegate add to it
• Update print_added_plugin to use status flags for consistent messaging
• Change default plugin variant name from “original” to “default”
Documentation:
• Update CLI reference to describe idempotent add behavior and the new --update/--no-update flag
Tests:
• Adjust tests to expect default update behavior and verify new add/update messages
meltano/meltanoGitHub
07/18/2025, 5:01 PMmeltano add now updates existing plugins by default
Pull request ready for review by edgarrmondragon
meltano/meltanoGitHub
07/22/2025, 1:42 AMmeltano add now updates existing plugins by default
Pull request ready for review by edgarrmondragon
meltano/meltanoGitHub
07/22/2025, 6:25 PMmeltano add now updates existing plugins by default
Pull request merged by edgarrmondragon
meltano/meltano