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
How to replace the 3rd party dependency #6705
Comments
What do you mean by replacing the requirement ? |
btw, if the library says it supports only |
@stof I'd like to install
where I'd like to lower the expectation and install |
Well, you should first try to get this change in the library itself. And then, a better solution to solve your issue is to use a forked version of the mock library (adding support for newer Guzzle versions) until the change is merged upstream instead of aliasing guzzle (which may affect other packages, and create weird issues due to lying on the actual version of Guzzle) See https://getcomposer.org/doc/articles/aliases.md#require-inline-alias for the way to use a fork temporarily. |
The package is not maintained anymore and there is another fork at I've also tested I've also tried to patch My other idea was to test the new dependencies by editing cache file directly, but it's in a bit different format. Shouldn't Composer allow to do that in the first place? Is there any planned feature to bypass such limitations? Or can I report one? |
The inline alias you used should have worked so not sure what was going on there, but anyway closing as hopefully it's resovled by now. And no publishing forks on packagist is not the way, you should define the repository in your composer.json and not pollute packagist :) |
I found that just putting the alias require in my composer.json didnt have effect, i had to use require command instead to add it, and then i could require my old package
|
I had a similar issue. The inline alias did work for me. |
My
composer.json
:I'm trying to replace requirement for
guzzlehttp/guzzle
(required byaeris/guzzle-http-mock
) and use5.3.x-dev
version instead of5.0.0
.Also I've tried to use
replace
section, e.g.However I've got still the following error:
Is it possible to achieve the above? To replace the version provided by
composer.json
hosted on packagist?The text was updated successfully, but these errors were encountered: