I want to update a Magento installation with sample data from 2.0.2 to 2.0.7, so I am following the instructions here to update the sample data.
When running
bin/magento sampledata:reset
I get the following error message:
[ErrorException]
file_get_contents(/path/to/magento/src/Vendor/Module/src/composer.json): failed to open stream: No such file or directory
The directory /path/to/magento/src/Vendor/Module/src/
contains the source code of a custom module which is not installed via composer.
The module registration file lies in /path/to/magento/src/Vendor/Module/registration.php
with the following content:
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Vendor_Module',
__DIR__ . '/src'
);
The module has a composer.json file in /path/to/magento/src/Vendor/Module/composer.json
, so if I can tell Magento to use that one it will be fine, but I wonder where the assumption is made that a composer.json is in the module source directory even if it has not been installed with composer.
The sampledata:reset
command is the first one where I ran into trouble with this setup. What can I do to make it work?