FMCorz / mdk

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

Exception on new installation of MDK #229

Closed HuongNV13 closed 7 months ago

HuongNV13 commented 7 months ago

Hi, After installing MDK on a new machine, I got the below exception when running mdk create -v main -n test

Creating instance test...
Error creating test:
  [Errno 2] No such file or directory: '/.moodle-sdk/moodle.git'
FileNotFoundError: [Errno 2] No such file or directory: '/.moodle-sdk/moodle.git'

I did the investigation and found out that this is a regression of #221 This line should not be called before self.checkCachedClones()

To replicate this issue

  1. cd [your home dir]/.moodle-sdk
  2. rm -rf moodle.git
  3. rm -rf integration.git
  4. Run mdk create -v main -n test

I will provide a patch soon.

Thanks,