Decisions about composer
Architectural decision records tagged with composer
-
acceptedUse composer audit in automated checks for known security vulnerabilities
Third-party dependencies can introduce known security vulnerabilities at any time, so projects need an automated mechanism to detect them early.
-
acceptedUse description template for upstream patches in composer
When managing patches in a
composer.jsonfile, clear and consistent descriptions improve maintainability and facilitate tooling. Currently, there is no standard template for describing patches, leading to inconsistent documentation. -
acceptedBreak composer install if patches don't apply
Allowing builds to succeed with failed patches can lead to malformed code or hidden errors.
-
acceptedUse local copies of patch files
When using cweagans/composer-patches, it is important that patch sources are consistent and do not change between builds.
-
acceptedStore Composer Patches configuration in composer.json
Validating a complete Composer configuration is important to ensuring build issues are caught early.
-
acceptedConfigure Composer Patches to Use `-p2` as `patchLevel` for Drupal core
Drupal's git repository has a different directory structure than projects built on Drupal. Default Composer Patches settings can cause Drupal patches to be silently misapplied.
-
deprecatedComposer patches configuration and best practices
Default
composer-patchessettings can lead to misapplied patches or hidden errors. Using a consistent configuration across projects will reduce errors and save time.