Problem/Motivation

Error when adding 2 patches. See steps to reproduce below.

5ea8fceb91e2c9e5a916581b# /bin/sh -c cd "${DOCROOT}" && composer patch-enable --file='patches.json'

The composer patches file was created.

The composer patches functionality was enabled successfully.

5ea8fceb91e2c9e5a916581b# /bin/sh -c cd "${DOCROOT}" && composer patch-add drupal/views_accordion "STM patch 1588133074" "https://www.drupal.org/files/issues/2020-03-21/3100388-3.patch"

The patch was successfully added.

Gathering patches from patch file.

> Drupal\Composer\Composer::ensureComposerVersion

5ea8fceb91e2c9e5a916581b# /bin/sh -c cd "${DOCROOT}" && composer patch-add drupal/views_accordion "STM patch 1588133074" "https://www.drupal.org/files/issues/2020-01-30/3091388-6.patch"

[InvalidArgumentException] A patch with the same "Description" already exists.

patch-add [--no-update] [--no-dev] [--]

Steps to reproduce

  1. Go to https://simplytest.me/
  2. Open "Advanced options"
  3. Type "views_accordion" for "Enter a project name" text field
  4. Click "Add an additional project" button
  5. Type "upgrade_status" into text field
  6. Click "Add a patch" button
  7. Copy/paste the first patch file URL: https://www.drupal.org/files/issues/2020-03-21/3100388-3.patch
  8. Click "Add a patch" button again
  9. Copy/paste the second patch file URL: https://www.drupal.org/files/issues/2020-01-30/3091388-6.patch
  10. Click "Launch sandbox" button
  11. Wait for simplytest.me to finish installing
  12. Error :(

Proposed resolution

Fix it :)

Remaining tasks

  • Debug
  • Fix
  • Review
  • Test
  • Deploy

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Comments

Kristen Pol created an issue. See original summary.

kristen pol’s picture

Issue summary: View changes