Add core_version_requirement: ^8 || ^9 to campaignmonitor.info.yml to designate that the module is compatible with Drupal 9. See https://www.drupal.org/node/3070687.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot22 2020-04-28 at 7.52.29 PM.png | 25 KB | kapilv |
| #2 | 3127396-2.patch | 655 bytes | mo_farhaz |
Comments
Comment #2
mo_farhaz commentedcore version requirement added.
please review
Comment #3
kapilv commentedComment #4
vladimirausPatch applied cleanly and works on D9.
Comment #6
kapilv commentedhttps://www.drupal.org/node/3070687
Comment #7
gábor hojtsyComment #8
kapilv commentedClass CMBase was not found while trying to analyse it - autoloading is probably not configured properly.
Comment #9
gábor hojtsyThat in itself does not prove anything, the tool sometimes produces false positives. Did you try to use it with Drupal 9?
Comment #10
meanderix commentedIt seems this commit is breaking composer deployments for a lot of people: #3131746: Composer "Could not parse version constraint {version}" error
Comment #11
lcontreras commented@meanderix is right. Please could you rollback this commit? seems that the composer is trying to download the very old module version that was failing with variable {version} in the composer.json.
Comment #12
davidarbour commentedCan it be that
core: 8.xmust be removed from info.yml ?https://git.drupalcode.org/project/campaignmonitor/-/commit/9afe72d?view...
Comment #13
lcontreras commented@davidarbour I think you are right and also, should be like this:
https://www.drupal.org/node/3070687
I didn't test it either.
Comment #14
gábor hojtsyThere is no reason to specify anything in the composer file in terms of core requirement, it will be taken from the info file. This helps with them not getting outdated.
Comment #15
lcontreras commented@Gábor Hojtsy you are right, composer.json is fine. I've edited my previous comment. I think (didn't test it) only info.yml need to be changed to. Also, do what @davidarbour said
core_version_requirement: ^8.7.7 || ^9Comment #16
vladimirausI would like to have a bit more debugging information.
Comment #17
vladimirauscomposer require drupal/campaignmonitorI'm gettingComment #23
vladimirausAfter some investigation it seems like old releases are causing the issue.
https://packages.drupal.org/8/drupal/campaignmonitor%248295169748a199564...
{version}was placed incomposer.jsonfor the following releasesComment #24
lcontreras commented@VladimirAus yeah, but why composer is trying to download other versions when we were asking ^2.0. Seems that composer is not installing the right version because it doesn't match with drupal core requirements.Could be something similar to this issue:
https://www.drupal.org/project/migrate_upgrade/issues/3008682#comment-12...
Comment #25
vladimiraus@lcontreras: it doesn't downloads previous versions. It downloads json manifest that contains errors passed from poorly defined composer.json for older versions.
Seems like those errors didn't kicked in until semantic versioning was switch on.
Comment #26
lcontreras commented@VladimirAus thanks for the clarification!
Comment #27
kristen polPer a Slack discussion with Gábor Hojtsy last year regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing title and tag cleanup here based on that discussion. Please use "Drupal 9 compatibility" for titles and tags on other issues. Thanks.
Comment #28
vladimiraus