Skip to content

Halt on fist patch failure by default

Choose a tag to compare

@allanpaiste allanpaiste released this 15 Aug 20:07
· 843 commits to master since this release

This release changes the default behaviour of the module and removed bunch of old environment values that were introduced before 'composer patch' command was available.

Breaking

  1. logic: installation/update/applying patches fails on first patch failure (used to be activated by COMPOSER_PATCHES_FATAL_FAIL); old default behaviour restorable via setting COMPOSER_PATCHES_GRACEFUL or using --graceful flag
  2. config: removed COMPOSER_PATCHES_REAPPLY_ALL, COMPOSER_FORCE_PATCH_REAPPLY; replaced by 'composer patch:redo'
  3. config: removed COMPOSER_PATCHES_FATAL_FAIL, COMPOSER_EXIT_ON_PATCH_FAILURE; replaceb by COMPOSER_PATCHES_GRACEFUL
  4. config: removed COMPOSER_PATCHES_FROM_SOURCE, COMPOSER_PATCHES_PREFER_OWNER; replaced with --from-source flag on commands (was meant for testing out a patch)
  5. config: removed COMPOSER_SKIP_PATCH_PACKAGES, COMPOSER_PATCHES_SKIP_PACKAGES; never really used for anything, could be achieved via using patcher configuration

Feature

  1. allow patch failures to be passed over gracefully with --graceful flag on 'composer patch:*' commands
  2. allow patch failures to be passed over gracefully with COMPOSER_PATCHES_GRACEFUL flag
  3. allow patch failures to be passed over gracefully with extra/patcher/graceful configuration in root package