-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Plugin doesn't work when using http proxy #80
Comments
Thank you for your report, @Koc! I will take a look on the weekend. |
Apologies for not handling this yet, I promise I will! |
Thank you, I hope on this) |
@Koc could you please run |
I already have a simple idea how to fix it, but won't have time before the weekend, unfortunately! |
both |
@localheinz I'm afraid that thanges should be done inside external deps https://github.com/justinrainbow/json-schema/tree/master/src/JsonSchema/Uri/Retrievers or you can download schema using |
Yes, I was thinking about a |
Can you do me a favour and require the
You might need to set the minimum stability to |
I've tryed (deleted and reinstalled global package).
and my |
😢 I'll investigate further! |
By any chance, can you provide a minmimum Docker setup that allows me to reproduce and fix this issue? |
I had swiched the company to another so hasn't access to code anymore (and proxy too :) ). It was standard alpine fpm image with some additional php extensions, libssl and |
We are also having the same issue at European Commission. |
I found a workaround by updating the package composer-json-normalize. The idea is to download a local copy of composer and use the local schema file instead of using the remote one. We still need to discuss about it. |
Here's what I have in mind: As the branch name suggests it, it's a WIP but right now, it's fully working. Basically, the plugins tries multiple methods to get the schema, here they are:
I will try to polish it today, but if you can give some feedback already, it would be nice. |
Have a look at this, from an European Commission computer: https://pastebin.com/5C6aDm5G |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Steps required to reproduce the problem
composer normalize
Expected Result
composer.json
was normalized.Actual Result
see for reference how composer handles
HTTP_PROXY
env var https://github.com/composer/composer/blob/d5a9d86ee4e934d06073521e630556d4f337629c/src/Composer/Util/StreamContextFactory.php#L43The text was updated successfully, but these errors were encountered: