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

fix: ensure replacement package is installed #2

Merged
merged 1 commit into from
Nov 1, 2019

Conversation

weierophinney
Copy link
Member

Q A
Bugfix yes
BC Break no
New Feature no
RFC no

Description

In testing, we discovered that while composer reports installing Laminas packages for nested dependencies, the actual packages installed were ZF packages. (Determined by examining the contents of the vendor directory.)

The solution was to update the OperationInterface with the replacement package found via the repository manager, instead of updating the package with the desired name. Replacing the package instance in the operation ensures that the actual package is installed.

One note: packages slip-streamed in this way do not return meaningful information via composer why. I am not certain there is a way to make that happen.

In testing, we discovered that while composer reports installing Laminas
packages for nested dependencies, the actual packages installed were ZF
packages. (Determined by examining the contents of the vendor
directory.)

The solution was to update the `OperationInterface` with the replacement
package found via the repository manager, instead of updating the
package with the desired name. Replacing the package instance in the
operation ensures that the actual package is installed.

One note: packages slip-streamed in this way do not return meaningful
information via `composer why`. I am not certain there is a way to make
that happen.
@weierophinney weierophinney force-pushed the hotfix/proper-package-replacement branch from 66cf938 to 3448ada Compare November 1, 2019 18:57
Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

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

🚢

weierophinney added a commit that referenced this pull request Nov 1, 2019
@weierophinney weierophinney merged commit 3448ada into master Nov 1, 2019
@weierophinney weierophinney deleted the hotfix/proper-package-replacement branch November 1, 2019 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants