Bug: As of WordPress 6.0, composer-patches on roots/wordpress does not work anymoreΒ #424
Open
Description
Terms
- I have read the guidelines for Contributing to Roots Projects
- This request is not a duplicate of an existing issue
- I have read the docs and followed them (if applicable)
- I have seached the Roots Discourse for answers and followed them (if applicable)
- This is not a personal support request that should be posted on the Roots Discourse community
Description
What's wrong?
Can't patch roots/wordpress
anymore.
What insights have you gained?
$install_path = $manager->getInstaller($package->getType())->getInstallPath($package);
now returns an empty string.
Possible solutions
Use roots/wordpress-no-content
(in require
and extra.patches
Temporary workarounds
Amend documentation / warn.
Steps To Reproduce
"extra": {
"patches": {
"roots/wordpress-no-content": {
"foo": "https://core.trac.wordpress.org/raw-attachment/ticket/bar.patch",
}
}
}
Expected Behavior
Installing and patching succeed
Actual Behavior
Executing command (CWD): patch '-p1' --no-backup-if-mismatch -d '' < '/tmp/63058d0222de6.patch'
patch: **** Can't change to directory '' : No such file or directory
Relevant Log Output
No response
Versions
6.0