Skip to content

Conversation

@ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Aug 13, 2021

As of Composer v2 there is a generated file that holds infos about the installed packages of a composer project. That file is linked to from the autoloader map:

'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
. That's a problem because there are packages that try to load that class if it exists.

This issues was discovered in ChristophWurst/nextcloud_sentry#331 and has caused some additional load on our company instance.

I will backport this change manually to all major versions that use composer v2.

Signed-off-by: Christoph Wurst <[email protected]>
echo
echo "Regenerating autoloader for ${app}"
echo "Regenerating composer files for ${app}"
$COMPOSER_COMMAND i --no-dev -d ${app}/composer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you find my two lines of change. the rest was generated by composer 😉

@skjnldsv skjnldsv merged commit d24929b into master Aug 15, 2021
@skjnldsv skjnldsv deleted the fix/composer-2-missing-files branch August 15, 2021 08:25
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants