Problem/Motivation
See #3396149: Drupal 9 users being updated to 3.0.0-beta1 incorrectly - D10 sites must upgrade to csv_serialization 4.x
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | views_data_export-change_csv_serialization_version-3397869-0.patch | 374 bytes | j.b |
Issue fork views_data_export-3397869
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
acbramley commentedComment #4
elc commentedThis may not be as simple as allowing the extra version - csv_serialization is 3.x branch for D9, and 4.x branch for D10.
Is there a way for this to be specified in composer.json format, or should csv_serialization also be split into two branches?
The require effectively needs to be: (drupal/core:^9, drupal/csv_serialization:^3) || (drupal/core:^10, drupal/csv_serialization:^4) which I don't believe is possible at present.
Another possibility would be hook_requirements informing of the correct version to install.
Comment #5
acbramley commented@ELC composer dependency resolution solves that for us. It won't update to 4.x unless the site is also on D10.
Comment #6
j.b commentedHello,
Can't we have a patch to correct the version in the composer.json while waiting for the merge request to be approved ?
Comment #7
j.b commentedI made the patch for those who can't wait
Comment #8
nagender16 commentedThe patch in #7 working for me
Comment #9
j.b commentedjust add this to your project composer.json
then composer update
Comment #10
markdorison#7 looks good to me.
Comment #11
stijnstroobants+1 RTBC for #7
Comment #12
brooke_heaton commentedThe tip in #9 helped me get this working in composer.json. Thanks @j.b.
Comment #13
solideogloria commentedA patch won't work if applied via Composer, since the composer.json is read prior to patching.
Can we get this committed, please?
Comment #14
solideogloria commentedComment #17
jhedstromThanks all!
Comment #18
acbramley commentedThanks @jhedstrom! Comparing 8.x-1.x to 8.x-1.3, this is the only change so a release would be amazing if possible!
Comment #19
jhedstromDone!