Skip to content

Conversation

BrianHenryIE
Copy link
Contributor

I often edit files and run mozart compose from the command line to update them. This was an unexpected change! This PR adds a config option, delete_vendor_directories, for disabling the behaviour.

The default behaviour is still to delete, which I'd argue is bad. Better to err on the side of caution, but allow the functionality in config.

I presume part of the motivation was because of IDE code completion suggesting multiple classes. I've begun to address this in PhpStorm with a composer plugin which reads Mozart's config and excludes packages listed: BrianHenryIE/composer-phpstorm. It still needs work, particularly that it doesn't yet read those packages' requires.

@BrianHenryIE
Copy link
Contributor Author

Added a check so in no circumstance is a package vendor directory deleted if it is a symlink.

@BrianHenryIE
Copy link
Contributor Author

Any delete actions should be opt-in.

@coenjacobs
Copy link
Owner

Good idea to add an optional flag to bypass this behaviour. I can see how this helps developers debug things from their local paths.

@coenjacobs coenjacobs merged commit 7ac9a5c into coenjacobs:master May 23, 2020
@BrianHenryIE BrianHenryIE deleted the delete-source-config-option branch May 3, 2021 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants