Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create an instance of MOODLE_405_STABLE #241

Open
cameron1729 opened this issue Dec 31, 2024 · 1 comment
Open

Cannot create an instance of MOODLE_405_STABLE #241

cameron1729 opened this issue Dec 31, 2024 · 1 comment

Comments

@cameron1729
Copy link

$ mdk --version
MDK version 2.1.2
$ mdk create -v 405
usage: mdk create [-h] [-i] [-e profile] [-t] [-r [run ...]] [-n name] [-s [suffix ...]] [-v [version ...]]

Creates new instances of Moodle

...

mdk create: error: argument -v/--version: invalid choice: '405' (choose from '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '310', '311', '400', '401', '402', '403', '404', 'master', 'main')

I guess the issue is the new version_options thing. This code:

def version_options():
    return ([str(x) for x in range(13, 40)]
            + [str(x) for x in range(310, 312)]
            + [str(x) for x in range(400, C.get('masterBranch'))]
            + ['master'])

Does not add 405 to the list.

@cameron1729
Copy link
Author

cameron1729 commented Dec 31, 2024

Ah actually I can see my masterBranch is still set to 405 even after mdk doctor --all --fix. After manually editing the config file, mdk create is happy again. I guess this can be closed but it's odd that I had to manually update that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant