Weird error when composer install through a docker image
Closed this issue · 3 comments
Mahjouba91 commented
In my docker custom image I do a:
RUN composer install --no-dev;
It worked fine until I added WP All import packages.
Now I have this error:
#17 2.063 - Downloading harvesthq/chosen (v1.8.7)
#17 2.069
#17 2.069 In FileDownloader.php line 439:
#17 2.069
#17 2.069 [TypeError]
#17 2.069 pathinfo() expects parameter 1 to be string, null given
#17 2.069
#17 2.069
#17 2.069 Exception trace:
#17 2.069 at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:439
my composer.json is like this:
"wp-all-import-pro": {
"type": "package",
"package": {
"name": "junaidbhura/wp-all-import-pro",
"version": "4.6.9",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
"wp-all-export-pro": {
"type": "package",
"package": {
"name": "junaidbhura/wp-all-export-pro",
"version": "1.7.0",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
"wpai-linkcloak-add-on": {
"type": "package",
"package": {
"name": "junaidbhura/wpai-linkcloak-add-on",
"version": "1.1.5",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
"wpae-user-add-on-pro": {
"type": "package",
"package": {
"name": "junaidbhura/wpae-user-add-on-pro",
"version": "1.0.6",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
"wpai-user-add-on": {
"type": "package",
"package": {
"name": "junaidbhura/wpai-user-add-on",
"version": "1.1.6",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
}
...
"junaidbhura/wp-all-import-pro": "*",
"junaidbhura/wp-all-export-pro": "*",
"junaidbhura/wpai-linkcloak-add-on": "*",
"junaidbhura/wpae-user-add-on-pro": "*",
"junaidbhura/wpai-user-add-on": "*",
And I'm still able to download the plugin in local when I do a composer install/update, I have my .env file with the right values.
Do you reproduce this issue?
junaidbhura commented
@Mahjouba91 Sounds like this issue rather than Docker: #34 . Could you try downgrading Composer?
Mahjouba91 commented
@junaidbhura Ok you're right it was because of the composer version in the Docker image who was set to latest, so it did not work. Thank you very much for pointing me out in the right direction
junaidbhura commented
No worries thanks!