-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Env: Migrate to Compose V2 #51339
Env: Migrate to Compose V2 #51339
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @lithrel! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
d40eed0
to
8369535
Compare
The unit test error is unfortunate:
I think this is because wp-env is still using CJS and not ESM, but this 3rd party dependency ( I don't know if there's a decent workaround -- we might have to explore migrating wp-env to ESM (which would be nice to do eventually anyways, but I don't know if there are blockers to that in the Gutenberg repo) |
It's weird. It does have a CJS build under |
Hm, I'd think so! 🤔 Maybe an issue since we're still using node 14? (#52363 ) |
8369535
to
6eb0497
Compare
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
I just rebased to get Node 16, and same error apparently 🤔 "transformIgnorePatterns": [
"/node_modules/(?!(docker-compose|yaml)/)",
"\\.pnp\\.[^\\/]+$"
], but I feel like I'm missing something more obvious |
I'd recommend discarding all package-lock changes and then run npm install again! I wonder if we could actually write wp-env with ESM now because nothing imports its code |
I think |
336439f
to
346d6a3
Compare
@noahtallen I tested removing package-lock and reinstalling, but still the same issue. So I implementend the If you have a ticket for converting this package to ESM I can take a look in the following weeks 👀 |
346d6a3
to
560d713
Compare
It looks like the resolution problem is because of the conditional exports in While we wait for that though, I think it would be worthwhile to get this PR across the finish line. |
560d713
to
048c960
Compare
@ObliviousHarmony Rebased and updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for the rebase @lithrel! This looks good, I'm happy with it. Could you add a changelog entry and then we can merge it?
6aa187a
to
b5526bc
Compare
Done @ObliviousHarmony :) |
b5526bc
to
4c31e2d
Compare
I would like to inform you that all of these commands worked correctly on Windows 11 🎉 |
4c31e2d
to
4bbca7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, everything worked for me locally just fine too 😄
Looks like we just need to fix the changelog conflict, and then I'm happy to merge! |
Update docker-compose package to 0.24.1 Use v2 as dockerCompose command Fixes WordPress#51249
4bbca7e
to
f25bb2b
Compare
@noahtallen rebased/resolved 👍 |
👋 FWIW,
The reason seems to be that I’m using colima on my system, and have installed it — and Docker — via
After running those commands, Just sharing in case anyone is experiencing the same issue. |
Very nice! I have Docker installed with Docker Desktop, and it seemed to work out of the box with that setup. |
Fixes #51249
What?
This PR updates
docker-compose
command to v2docker compose
.Why?
As explained in #51249 ,
docker-compose
v1 is now deprecated in favor of v2.How?
docker-compose
Testing Instructions
Run all modified commands:
wp-env start
wp-env logs
wp-env run cli wp user list
wp-env stop
wp-env clean
wp-env destroy