i finally was able to narrow the issue down. for quite a while the end of the settings.php file in my sandbox project looked like this after a while:
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'prefix' => '',
'host' => 'db',
'port' => 3306,
'isolation_level' => 'READ COMMITTED',
'driver' => 'mysql',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
$settings['config_sync_directory'] = 'sites/default/files/config_d0uPupMsVXU948BjkhMUcNCIzABrcJNG3z-eAKCaFPlbsxucliPUiYTOS9kAlmtPW1cKU_MEYw/sync';
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'prefix' => '',
'host' => 'db',
'port' => 3306,
'isolation_level' => 'READ COMMITTED',
'driver' => 'mysql',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'prefix' => '',
'host' => 'db',
'port' => 3306,
'isolation_level' => 'READ COMMITTED',
'driver' => 'mysql',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'prefix' => '',
'host' => 'db',
'port' => 3306,
'isolation_level' => 'READ COMMITTED',
'driver' => 'mysql',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'prefix' => '',
'host' => 'db',
'port' => 3306,
'isolation_level' => 'READ COMMITTED',
'driver' => 'mysql',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
took me a while to figure it out. but point is that from time to time i'Ve dropped my database with ddev drush sql:drop and then reinstalled the site with ddev drush si. on the regular recommended-project nothing happens and nothing is getting added to the settings.php file. but on the drupal-core-development-project composer template
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'prefix' => '',
'host' => 'db',
'port' => 3306,
'isolation_level' => 'READ COMMITTED',
'driver' => 'mysql',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
$settings['config_sync_directory'] = 'sites/default/files/config_d0uPupMsVXU948BjkhMUcNCIzABrcJNG3z-eAKCaFPlbsxucliPUiYTOS9kAlmtPW1cKU_MEYw/sync';
is getting added. if you drop the database and reinstall the site the path in the config_sync_directory settings line is getting updated while the snippet for the databases array gets readded. that way over time those snippets are piling up and spamming the settings.php. but not sure yet what is causing that behavior.
i finally was able to narrow the issue down. for quite a while the end of the settings.php file in my sandbox project looked like this after a while:
took me a while to figure it out. but point is that from time to time i'Ve dropped my database with
ddev drush sql:dropand then reinstalled the site withddev drush si. on the regular recommended-project nothing happens and nothing is getting added to the settings.php file. but on the drupal-core-development-project composer templateis getting added. if you drop the database and reinstall the site the path in the config_sync_directory settings line is getting updated while the snippet for the databases array gets readded. that way over time those snippets are piling up and spamming the settings.php. but not sure yet what is causing that behavior.