Terms
Description
What's wrong?
Can't patch roots/wordpress anymore.
What insights have you gained?
https://github.com/cweagans/composer-patches/blob/e9969cfc0796e6dea9b4e52f77f18e1065212871/src/Patches.php#L304
$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
Terms
Description
What's wrong?
Can't patch
roots/wordpressanymore.What insights have you gained?
https://github.com/cweagans/composer-patches/blob/e9969cfc0796e6dea9b4e52f77f18e1065212871/src/Patches.php#L304
Possible solutions
Use
roots/wordpress-no-content(inrequireandextra.patchesTemporary workarounds
Amend documentation / warn.
Steps To Reproduce
Expected Behavior
Installing and patching succeed
Actual Behavior
Relevant Log Output
No response
Versions
6.0