Decisions about composer

Architectural decision records tagged with composer

7 decisions
  1. accepted
    Use 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.

    composer security ci
  2. accepted
    Use description template for upstream patches in composer

    When managing patches in a composer.json file, clear and consistent descriptions improve maintainability and facilitate tooling. Currently, there is no standard template for describing patches, leading to inconsistent documentation.

    composer
  3. accepted
    Break composer install if patches don't apply

    Allowing builds to succeed with failed patches can lead to malformed code or hidden errors.

    drupal composer php
  4. accepted
    Use local copies of patch files

    When using cweagans/composer-patches, it is important that patch sources are consistent and do not change between builds.

    drupal php composer
  5. accepted
    Store Composer Patches configuration in composer.json

    Validating a complete Composer configuration is important to ensuring build issues are caught early.

    drupal php composer
  6. accepted
    Configure 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.

    drupal php composer
  7. deprecated
    Composer patches configuration and best practices

    Default composer-patches settings can lead to misapplied patches or hidden errors. Using a consistent configuration across projects will reduce errors and save time.

    drupal php composer

Search Decisions