Skip to content

Missing file in moodle-plugin-ci.phar #363

@ewallah

Description

@ewallah

Plugin CI 4.5.8

Error when running code checker:

FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 1 | ERROR | An error occurred during processing; checking has been aborted. The error message was:
   |       | file_get_contents(phar://moodle-plugin-ci.phar/vendor/moodlehq/moodle-cs/moodle/Util/apis.json): Failed
   |       | to open stream: phar error: "vendor/moodlehq/moodle-cs/moodle/Util/apis.json" is not a file in phar
   |       | "moodle-plugin-ci.phar" in
   |       | phar://moodle-plugin-ci.phar/vendor/moodlehq/moodle-cs/moodle/Util/MoodleUtil.php on line 297
   |       | The error originated in the moodle.Commenting.Category sniff on line 62. (Internal.Exception)
------------------------------------------------------------------------------------------------------------------------------------

When extracting the phar file, you see that the apis.json file is missing in the Util directory.

phar extract -f moodle-plugin-ci.phar

...
vendor/moodlehq/moodle-cs/moodle/Sniffs/WhiteSpace/SpaceAfterCommaSniff.php ...ok
vendor/moodlehq/moodle-cs/moodle/Sniffs/WhiteSpace/WhiteSpaceInStringsSniff.php ...ok
vendor/moodlehq/moodle-cs/moodle/Util/Attributes.php ...ok
vendor/moodlehq/moodle-cs/moodle/Util/Docblocks.php ...ok
vendor/moodlehq/moodle-cs/moodle/Util/MoodleUtil.php ...ok
vendor/moodlehq/moodle-cs/moodle/Util/TokenUtil.php ...ok
vendor/moodlehq/moodle-cs/moodle/Util/TypeUtil.php ...ok
vendor/moodlehq/moodle-cs/moodle/ruleset.xml ...ok
vendor/moodlehq/moodle-cs/moodle-extra/ruleset.xml ...ok
vendor/moodlehq/moodle-local_ci/check_upgrade_savepoints/check_upgrade_savepoints.php ...ok
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions