Closed (fixed)
Project:
Upgrade Status
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2020 at 13:46 UTC
Updated:
29 Apr 2020 at 15:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gábor hojtsyGood find thanks!
Comment #5
gábor hojtsyRemoving the existence check and adjusting the error message about the drupal/core requirement if present but not compatible. Looks good? :)
Also crediting folks from the slack thread for discovery.
Comment #6
gábor hojtsyComment #8
gábor hojtsyComment #9
gábor hojtsyIs there a good documentation link we can point to to explain what is going on here btw? That would be ideal.
Comment #10
benjifisherThe patch looks right, although the revised error message is a little long:
Maybe something more prescriptive would be better:
Consider removing the last sentence: I do not think we want to encourage module maintainers to remove composer.json.
I tried to test locally, but now I get
Any idea where that comes from? I did update Lando and rebuild my containers since the earlier test.
Comment #11
benjifisherI think the standard documentation about composer.json is https://www.drupal.org/docs/8/creating-custom-modules/add-a-composerjson.... You might want to add a section there about the best practices for D9 compatibility.
Related: https://www.drupal.org/docs/8/creating-custom-modules/let-drupal-8-know-.... This already has good information on
core_version_requirementandcore: 8.x.Comment #13
gábor hojtsyGreat, I added some docs to https://www.drupal.org/docs/8/creating-custom-modules/add-a-composerjson... and linked that in. Also added a link to that page to the parse error as well.
The 500 error would be great to figure out, I don't know why that is the case, did you try with the dev version (2.2 had a problem that could cause a 500 error).
Either way, closing this as the scope has been resolved :)
Thanks for all your help and thorough investigation everyone.
Comment #14
gábor hojtsyThe missing key was now generating a notice. Duh. Should eventually add some decent test coverage for this :D
Comment #16
gábor hojtsyCrediting @jastraat from #3127210: Scanning contributed projects fails with a cURL error when scanning through the UI over HTTP for finding it.
Comment #18
gábor hojtsyCommitted that.