Assuming I have a feature "myfeature" that declares all the dependencies on a site.

drush fe myfeature dependencies:views dependencies:views_ui

-> Adds views and views_ui as dependencies in myfeature.info.

drush fe myfeature dependencies:views dependencies:ds

-> Adds ds as a dependency in myfeature.info.
-> Removes views as a dependency, because it is already required by views_ui and thus redundant.

This is quite annoying because I always have to clean up my git history afterwards, by squashing commits.

There should be a mechanism to prevent redundant dependencies from being added in the first place.
Maybe a cli option to drush features-export? Or a new command dedicated to adding dependencies?

Comments

donquixote created an issue.