Trying to submit my extension to Adobe commerce marketplace but it keeps failing.
Zip module directories tree :
app/ code/ vendor/ module-name/ registration.php composer.json etc/ module.xml ... (other files/folders)
Composer.json file -
{ "name": "vendor/module-name", "description": "....", "type": "magento2-module", "version": "1.1.6", "license": "GPL-3.0", "authors": [ { "name": "..." } ], "minimum-stability": "dev", "require": {}, "autoload": { "files": [ "registration.php" ], "psr-4": { "vendor\\module-name\\": "app/code/vendor/module-name/" } } }
Also when I tried to zipped all the files (no parent folders), it accepted
passing in PHPCS test, failing in Installation and Varnish Test.
Solved! Go to Solution.
Hi @aloktiwari83c2 ,
Your zip file must contain your extension's directory directly at the root - not an extra folder layer, and it must include the composer.json at the right place.
YourVendorName_YourModuleName/
├── composer.json
├── registration.php
├── etc/
├── Model/
├── etc/module.xml
├── etc/di.xml
├── ... other files
Currently I can see app/code/vendor/module-name in your screenshot.
Only module-name should be root when you extract zip.
Problem Solved? Accept as Solution!
Thanks
Hi @aloktiwari83c2 ,
Your zip file must contain your extension's directory directly at the root - not an extra folder layer, and it must include the composer.json at the right place.
YourVendorName_YourModuleName/
├── composer.json
├── registration.php
├── etc/
├── Model/
├── etc/module.xml
├── etc/di.xml
├── ... other files
Currently I can see app/code/vendor/module-name in your screenshot.
Only module-name should be root when you extract zip.
Problem Solved? Accept as Solution!
Thanks