-
Notifications
You must be signed in to change notification settings - Fork 937
composer install and composer require should not rewrite .htaccess and other files #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I was sure that this didn't happen in the past so I explored a little further (thanks Zan for helping me) and found that this happens since Are there any downsides if I keep the old ( |
I found a solution but this will also exclude these files on I'm not an expert in composer but is it possible to somehow disable exclusion on |
Maybe use the approach covered on the same page under Altering Scaffold Files. By that you always use the core scaffold files and apply your own patches to make them look like you want. When you But let's continue this discussion somewhere else. It's off-topic here. |
Relevant core issue: "Avoid re-scaffolding unchanged files (and printing scaffold file information over and over)" https://www.drupal.org/project/drupal/issues/3103090 |
Thank you both!
I am closing this. |
I've been using this project for all my Drupal sites and I noticed one thing that bothers me.
When requiring new modules locally or running composer install on production (I use git for deployment) the following files will always be overwritten.
I understand that this is done on
composer create-project
andcomposer update
but why when requiring new modules?Is there any way to prevent this?
The text was updated successfully, but these errors were encountered: