Open lkraav opened 1 year ago
Hello Leho! 😆 This is also a viktor-supported project.
You could create a stub package (in form of 1 local composer.json
file) that "provide":
the Roots package.
May I create that file for you?
Turns out no need for a fake package, it can be done in the main project.
{
"name": "cxl/lehos-trick",
"description": "https://github.com/Automattic/wordbless/issues/60",
"require": {
"automattic/wordbless": "^0.4.1",
"johnpbloch/wordpress": "^6.1"
},
"provide": {
"roots/wordpress": "^6.0.2"
},
"config": {
"allow-plugins": {
"johnpbloch/wordpress-core-installer": true
}
}
}
automattic/wordbless 0.4.1 WorDBless allows you to ...
├──php >=5.6.20
└──roots/wordpress ^6.0.2
johnpbloch/wordpress 6.1.1 WordPress is open source software ...
├──johnpbloch/wordpress-core 6.1.1
│ ├──ext-json *
│ └──php >=5.6.20
├──johnpbloch/wordpress-core-installer ^1.0 || ^2.0
│ ├──composer-plugin-api ^1.0 || ^2.0
│ └──php >=5.6.0
└──php >=5.6.20
Turns out no need for a fake package, it can be done in the main project.
Thanks I will test this and report back.
If my project is already using
johnpbloch/wordpress
as dependency, how's this going to work out? Seems like I would need to maintain a wordbless fork withroots/wordpress
swapped out? Or maybe some composer magic can sendroots/wordpress
to/dev/null
automatically :thinking: