Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Co-oping with johnpbloch/wordpress, how? #60

Open
lkraav opened this issue Jan 29, 2023 · 3 comments
Open

Co-oping with johnpbloch/wordpress, how? #60

lkraav opened this issue Jan 29, 2023 · 3 comments

Comments

@lkraav
Copy link

lkraav commented Jan 29, 2023

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 with roots/wordpress swapped out? Or maybe some composer magic can send roots/wordpress to /dev/null automatically 🤔

@szepeviktor
Copy link
Collaborator

szepeviktor commented Jan 29, 2023

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?

@szepeviktor
Copy link
Collaborator

szepeviktor commented Jan 29, 2023

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

@lkraav
Copy link
Author

lkraav commented Jan 30, 2023

Turns out no need for a fake package, it can be done in the main project.

Thanks I will test this and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants