Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove composer RootPackage state pollution #58

Merged

Conversation

boesing
Copy link
Member

@boesing boesing commented Jul 13, 2022

Q A
Bugfix yes

Description

In v3.0.0, we remove the "lazy" initialisation of the plugin.
This pointed out, that we polluted the RootPackage within the Composer instance by initialising the RootPackageRepository (which internally passes itself to the RootPackage).

In composer/composer@b195f38, composer also added clone in all commands so that the issue will be fixed for projects with v3.0.0 but we should still fix the pollution in the next patch release.

Fixes #57

boesing added 4 commits July 13, 2022 14:35
…not modify the root packages repository value

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
… when available

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing added the Bug Something isn't working label Jul 13, 2022
@boesing boesing added this to the 3.0.1 milestone Jul 13, 2022
@boesing boesing linked an issue Jul 13, 2022 that may be closed by this pull request
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

Nice and clean! 👍

@boesing boesing merged commit b019598 into laminas:3.0.x Jul 13, 2022
@boesing boesing deleted the bugfix/root-package-repository-initialization branch July 13, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composer check-platform-reqs crashes with v3.0.0 of this component
2 participants