Patch didn't apply, but it seemed like it was only the info file that it failed on

Created on 15 March 2021, about 4 years ago
Updated 4 March 2024, about 1 year ago

Problem/Motivation

Could not apply patch

Steps to reproduce

add
drupal/multi_node_add:^1.0@alpha to composer
and
"Drupal 9 compatibility and clean-up": " https://www.drupal.org/files/issues/2019-10-27/3090330-2.patch β†’ "
},
"drupal/multi_node_add":{"Automated Drupal 9 compatibility fixes":" https://www.drupal.org/files/issues/2020-06-06/multi_node_add.1.x-dev.re... β†’ "}

},
to composer.json and run composer update

I solved this by downloading the module and applying the patch manually:

multi_node_add ben$ patch -p1 < multi_node_add.1.x-dev.rector.patch

patching file multi_node_add.info.yml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file multi_node_add.info.yml.rej
patching file multi_node_add.module
patching file src/Controller/MultiNodeAddController.php
patching file src/Form/MultiNodeAddForm.php

so far testing it seems ok...
I simply removed the version line in multi_node_add.info.yml
version: '8.x-1.0-alpha1'
and added
core_version_requirement: ^8 || ^9

I wonder if it's because the version in the issue is
8.x-1.x-dev
but that doesn't exist. I applied the patch to
8.x-1.0-alpha1

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom benjarlett

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024