The installation worked flawless with Shopware 6.5 and whichbrowser/parser
is the only dependency.
Shopware version: 6.6.3.0
Environment: dockware/dev:6.6.3.0 container
Required packages in the plugins composer.json
{
"require": {
"shopware/core": "^6.6.0.0",
"whichbrowser/parser": "^v2.1.8"
},
}
executeComposerCommands is enabled in the plugin base class
class MyPlugin extends Plugin
{
public function executeComposerCommands(): bool
{
return true;
}
}
The following error message gets thrown:
In FilesystemRepository.php line 166:
[ErrorException]
file_get_contents(/var/www/html/vendor/composer/composer/src/Composer/Repository/../InstalledVersions.php): Failed to open stream: No such file or directory
The whole installation output:
[ShopwareCoreFrameworkPluginExceptionPluginComposerRequireException]
Could not execute "composer require" for plugin "MyPlugin (my-plugin:2.3.0). Output:
./composer.json has been updated
Running composer update my-plugin --with-all-dependencies
> pre-update-cmd: SymfonyFlexFlex_composer_tmp1->configureInstaller
Loading composer repositories with package information
> pre-pool-create: SymfonyFlexFlex_composer_tmp1->truncatePackages
Updating dependencies
Dependency resolution completed in 0.007 seconds
Analyzed 624 packages to resolve dependencies
Analyzed 2148 rules to resolve dependencies
Lock file operations: 2 installs, 6 updates, 0 removals
Installs: whichbrowser/parser:v2.1.8, my-plugin:2.3.0
Updates: twig/twig:v3.8.0, zircote/swagger-php:4.10.0, twig/intl-extra:v3.8.0, shopware/conflicts:0.1.22, composer/class-map-generator:1.3.3, composer/composer:2.7.7
- Locking my-plugin (2.3.0)
- Upgrading composer/class-map-generator (1.3.2 => 1.3.3)
- Upgrading composer/composer (2.7.6 => 2.7.7)
- Upgrading shopware/conflicts (0.1.20 => 0.1.22)
- Downgrading twig/intl-extra (v3.10.0 => v3.8.0)
- Downgrading twig/twig (v3.10.3 => v3.8.0)
- Locking whichbrowser/parser (v2.1.8)
- Upgrading zircote/swagger-php (4.9.3 => 4.10.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
> pre-operations-exec: SymfonyFlexFlex_composer_tmp1->recordOperations
Package operations: 2 installs, 6 updates, 0 removals
Installs: whichbrowser/parser:v2.1.8, my-plugin:2.3.0
Updates: zircote/swagger-php:4.10.0, twig/twig:v3.8.0, twig/intl-extra:v3.8.0, shopware/conflicts:0.1.22, composer/class-map-generator:1.3.3, composer/composer:2.7.7
- Downloading whichbrowser/parser (v2.1.8)
- Downloading zircote/swagger-php (4.10.0)
- Downloading twig/twig (v3.8.0)
- Downloading twig/intl-extra (v3.8.0)
- Downloading composer/class-map-generator (1.3.3)
- Downloading composer/composer (2.7.7)
0/6 [>---------------------------] 0% < 1 sec
3/6 [==============>-------------] 50% 1 sec
6/6 [============================] 100% 1 sec
- Installing whichbrowser/parser (v2.1.8): Extracting archive
- Upgrading zircote/swagger-php (4.9.3 => 4.10.0): Extracting archive
- Downgrading twig/twig (v3.10.3 => v3.8.0): Extracting archive
- Downgrading twig/intl-extra (v3.10.0 => v3.8.0): Extracting archive
- Upgrading shopware/conflicts (0.1.20 => 0.1.22)
- Upgrading composer/class-map-generator (1.3.2 => 1.3.3): Extracting archive
- Upgrading composer/composer (2.7.6 => 2.7.7): Extracting archive
- Installing my-plugin (2.3.0): Symlinking from custom/plugins/MyPlugin
0/6 [>---------------------------] 0% < 1 sec
5/6 [=======================>----] 83% < 1 sec
6/6 [============================] 100% < 1 sec
In FilesystemRepository.php line 166:
[ErrorException]
file_get_contents(/var/www/html/vendor/composer/composer/src/Composer/Repository/../InstalledVersions.php): Failed to open stream: No such file or directory
Exception trace:
at /var/www/html/vendor/composer/composer/src/Composer/Repository/FilesystemRepository.php:166
ComposerUtilErrorHandler::handle() at n/a:n/a
file_get_contents() at /var/www/html/vendor/composer/composer/src/Composer/Repository/FilesystemRepository.php:166
ComposerRepositoryFilesystemRepository->write() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:381
ComposerInstallerInstallationManager->ComposerInstaller{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:28
ReactPromiseFulfilledPromise->then() at /var/www/html/vendor/react/promise/src/Promise.php:134
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42
ReactPromiseFulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42
ReactPromiseFulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42
ReactPromiseFulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:66
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42
ReactPromiseFulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42
ReactPromiseFulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/FulfilledPromise.php:42
ReactPromiseFulfilledPromise->done() at /var/www/html/vendor/react/promise/src/Promise.php:135
ReactPromisePromise::ReactPromise{closure}() at /var/www/html/vendor/react/promise/src/Promise.php:168
ReactPromisePromise->settle() at /var/www/html/vendor/react/promise/src/Promise.php:231
ReactPromisePromise::ReactPromise{closure}() at n/a:n/a
call_user_func() at /var/www/html/vendor/composer/composer/src/Composer/Util/ProcessExecutor.php:328
ComposerUtilProcessExecutor->countActiveJobs() at /var/www/html/vendor/composer/composer/src/Composer/Util/Loop.php:90
ComposerUtilLoop->wait() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:430
ComposerInstallerInstallationManager->waitOnPromises() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:405
ComposerInstallerInstallationManager->executeBatch() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:319
ComposerInstallerInstallationManager->downloadAndExecuteBatch() at /var/www/html/vendor/composer/composer/src/Composer/Installer/InstallationManager.php:218
ComposerInstallerInstallationManager->execute() at /var/www/html/vendor/composer/composer/src/Composer/Installer.php:827
ComposerInstaller->doInstall() at /var/www/html/vendor/composer/composer/src/Composer/Installer.php:652
ComposerInstaller->doUpdate() at /var/www/html/vendor/composer/composer/src/Composer/Installer.php:298
ComposerInstaller->run() at /var/www/html/vendor/composer/composer/src/Composer/Command/RequireCommand.php:496
ComposerCommandRequireCommand->doUpdate() at /var/www/html/vendor/composer/composer/src/Composer/Command/RequireCommand.php:340
ComposerCommandRequireCommand->execute() at /var/www/html/vendor/symfony/console/Command/Command.php:279
SymfonyComponentConsoleCommandCommand->run() at /var/www/html/vendor/symfony/console/Application.php:1031
SymfonyComponentConsoleApplication->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:318
SymfonyComponentConsoleApplication->doRun() at /var/www/html/vendor/composer/composer/src/Composer/Console/Application.php:394
ComposerConsoleApplication->doRun() at /var/www/html/vendor/symfony/console/Application.php:169
SymfonyComponentConsoleApplication->run() at /var/www/html/vendor/composer/composer/src/Composer/Console/Application.php:148
ComposerConsoleApplication->run() at /var/www/html/vendor/shopware/core/Framework/Plugin/Composer/CommandExecutor.php:40
ShopwareCoreFrameworkPluginComposerCommandExecutor->require() at /var/www/html/vendor/shopware/core/Framework/Plugin/PluginLifecycleService.php:697
ShopwareCoreFrameworkPluginPluginLifecycleService->executeComposerRequireWhenNeeded() at /var/www/html/vendor/shopware/core/Framework/Plugin/PluginLifecycleService.php:126
ShopwareCoreFrameworkPluginPluginLifecycleService->installPlugin() at /var/www/html/vendor/shopware/core/Framework/Plugin/Command/Lifecycle/PluginInstallCommand.php:69
ShopwareCoreFrameworkPluginCommandLifecyclePluginInstallCommand->execute() at /var/www/html/vendor/symfony/console/Command/Command.php:279
SymfonyComponentConsoleCommandCommand->run() at /var/www/html/vendor/symfony/console/Application.php:1049
SymfonyComponentConsoleApplication->doRunCommand() at /var/www/html/vendor/symfony/framework-bundle/Console/Application.php:125
SymfonyBundleFrameworkBundleConsoleApplication->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:318
SymfonyComponentConsoleApplication->doRun() at /var/www/html/vendor/symfony/framework-bundle/Console/Application.php:79
SymfonyBundleFrameworkBundleConsoleApplication->doRun() at /var/www/html/vendor/symfony/console/Application.php:169
SymfonyComponentConsoleApplication->run() at /var/www/html/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
SymfonyComponentRuntimeRunnerSymfonyConsoleApplicationRunner->run() at /var/www/html/vendor/autoload_runtime.php:29
require_once() at /var/www/html/bin/console:17