FMCorz / mdk

Moodle Development Kit. A collection of tools meant to make developers' lives easier.
GNU General Public License v3.0
87 stars 47 forks source link

Cannot install plugins for Moodle 3.10 or 3.11 #213

Closed PhilippImhof closed 2 years ago

PhilippImhof commented 2 years ago

Currently, the plugin version is calculated by dividing the Moodle version by 10. This is wrong for versions like 3.10 or 3.11:

$ mdk create --version 310 --install --engine mysqli --run dev
$ mdk plugin install qbehaviour_adaptivemultipart stable_310

Retrieving information for plugin qbehaviour_adaptivemultipart and branch 31.0
No result found
Retrieving information for plugin qbehaviour_adaptivemultipart and branch 30.9
No result found
Could not find a file for this plugin

PR #212 proposes a fix.

FMCorz commented 2 years ago

Fixed in #212.