Skip to content

Commit

Permalink
NEXT-18945 - Add conflict package
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Dec 21, 2021
1 parent 0c9fc05 commit 52ad782
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
8 changes: 8 additions & 0 deletions changelog/_unreleased/2021-12-20-add-conflict-package.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Add conflict package
issue: NEXT-18945
---

# Core

* Added new package `shopware/conflicts` to update conflicting packages without changing anything in Shopware itself
11 changes: 4 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"ext-xml": "*",
"ext-zip": "*",
"ext-zlib": "*",
"composer-runtime-api": "^2.0",
"aws/aws-sdk-php": "^3.198.5",
"cocur/slugify": "4.0.0",
"composer-runtime-api": "^2.0",
"composer/composer": "^2.1.9",
"composer/semver": "^3.2",
"doctrine/annotations": "1.13.1",
Expand Down Expand Up @@ -85,6 +85,8 @@
"psr/log": "1.1.2",
"scssphp/scssphp": "1.0.7",
"sensio/framework-extra-bundle": "5.5.6",
"shopware/conflicts": "*",
"squirrelphp/twig-php-syntax": "1.6.0",
"sroze/messenger-enqueue-transport": "0.4.0",
"superbalist/flysystem-google-storage": "~7.2.2",
"symfony/asset": "~5.3.11",
Expand Down Expand Up @@ -135,8 +137,7 @@
"twig/intl-extra": "3.3.0",
"twig/string-extra": "3.3.0",
"twig/twig": "3.3.3",
"zircote/swagger-php": "3.1.0",
"squirrelphp/twig-php-syntax": "1.6.0"
"zircote/swagger-php": "3.1.0"
},
"require-dev": {
"ext-tokenizer": "*",
Expand Down Expand Up @@ -329,10 +330,6 @@
"@e2e:recovery:cypress open"
]
},
"conflict": {
"symfony/symfony": "*",
"symfony/notifier": "v5.3.8"
},
"autoload": {
"psr-4": {
"Shopware\\Administration\\": "src/Administration/",
Expand Down
5 changes: 1 addition & 4 deletions src/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"psr/http-message": "1.0.1",
"psr/log": "1.1.2",
"sensio/framework-extra-bundle": "5.5.6",
"shopware/conflicts": "*",
"sroze/messenger-enqueue-transport": "0.4.0",
"superbalist/flysystem-google-storage": "~7.2.2",
"symfony/asset": "~5.3.11",
Expand Down Expand Up @@ -149,10 +150,6 @@
"symfony/dom-crawler": "~5.3.0",
"brianium/paratest": "^6.2"
},
"conflict": {
"symfony/symfony": "*",
"symfony/notifier": "v5.3.8"
},
"config": {
"platform": {
"php": "7.4.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,9 @@ public function __invoke(string $installationPath): SourceLocator
{
Assert::file($installationPath . '/composer.json');

$this->runInDirectory(function () use ($installationPath): void {
$installer = ($this->makeComposerInstaller)($installationPath);

assert($installer instanceof Installer);

// Some defaults needed for this specific implementation:
$installer->setDevMode(false);
$installer->setDumpAutoloader(false);
$installer->setRunScripts(false);
$installer->setIgnorePlatformRequirements(true);

$installer->run();
}, $installationPath);

// <shopware-hack>
// The tool does not support composer 2. Execute system wide installed composer binary
exec(\sprintf('composer install -d %s --no-dev --no-scripts --ignore-platform-reqs', escapeshellarg($installationPath)));
$this->fixeMarc1706FastImageSizeDirectories($installationPath);
// </shopware-hack>

Expand Down

0 comments on commit 52ad782

Please sign in to comment.