Problem/Motivation
The dependencies in a module's .info.yml file must be an array. I mistakenly added a single dependency as a string, which is valid yaml, and spent far too long debugging issues installing a site from existing config. I'm wondering how I could have prevented this and thought perhaps coder could detect this. Alternatively Drupal could allow a string OR array. Ultimately this was just a dumb mistake.
Steps to reproduce
Create a module with a single dependency not in an array:
dependencies:
drupal:taxonomy
Proposed resolution
Detect this pattern
Remaining tasks
Determine if this is appropriate for coder
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comments
Comment #2
branjansse commentedPlease review the patch for coder.
https://git.drupalcode.org/project/coder.git
Comment #3
arkener commented@branjansse Thank you for working on this, could you add a PR against https://github.com/pfrenssen/coder and add a test for this issue so we can see the test results?
Comment #4
branjansse commentedThank you @arkener for your comment. Please check the PR I have raised. https://github.com/pfrenssen/coder/pull/127
Comment #5
klausiComment #6
klausiCool, left a couple of comments there, can you fix those?
Comment #7
branjansse commentedThanks @klausi for the review. I will definitely fix those issues and share the update here.
Comment #8
branjansse commented@klausi I have fixed the issues you have suggested. Please review.
Comment #9
klausiThanks, only some minor points left!
Comment #10
branjansse commented@klausi i have fixed and pushed the code. Please review.
Comment #11
klausiStill some small things to do on the pull request, setting to needs work for that.
Comment #12
jonathan1055 commentedThis was close to being finished two years ago but then no activity for a year, so the PR was closed. I will make a new PR, address the problems and finish it off.
Comment #13
jonathan1055 commentedNew PR is https://github.com/pfrenssen/coder/pull/186 ready for review
Credit to @branjansse for the initial work.
Comment #15
klausiMerged, thanks!
Comment #16
jonathan1055 commentedThank you.