Skip to content

Commit 0ae2d12

Browse files
authored
Patch 2.4.8-p1 project-community-edition mirror package composer.json to match upstream (#226)
1 parent c92e9d6 commit 0ae2d12

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/build-config/mirror-build-config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,22 @@ const mirrorBuildConfig = {
2222
: {}
2323
composerJson.require = {...composerJson.require, ...patch}
2424
return composerJson;
25+
},
26+
],
27+
'magento/project-community-edition': [
28+
// Magento 2.4.8 forked allure-framework/allure-phpunit to magento/magento-allure-phpunit, because PHP 8.4 compat
29+
// Later, Allure created a new version with support for PHP 8.4
30+
// I believe that Magento tried to switch back to allure-framework/allure-phpunit but forgot to remove
31+
// magento/magento-allure-phpunit from the dev-dependencies list in the package. It is removed in githab though.
32+
// We add it in again here for consistency with the upstream release.
33+
composerJson => {
34+
const patch = composerJson.version === '2.4.8-p1'
35+
? {'magento/magento-allure-phpunit': '^3.0.2'}
36+
: {}
37+
composerJson['require-dev'] = {...composerJson['require-dev'], ...patch}
38+
return composerJson;
2539
}
26-
]
40+
],
2741
},
2842
// After package generation, the files for these specific module versions will be replaced.
2943
packageReplacements: [

0 commit comments

Comments
 (0)