You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm behind a proxy and the self-update command breaks because it does not take my proxy environment variables into consideration when checking github for the latest release in this file:
Specifically I'm getting this error when trying to self-update Acquia CLI:
PHP Warning: file_get_contents(https://api.github.com/repos/acquia/cli/releases): failed to open stream: Connection refused
in phar:///usr/local/bin/acli/vendor/consolidation/self-update/src/SelfUpdateCommand.php on line 70
Warning: file_get_contents(https://api.github.com/repos/acquia/cli/releases): failed to open stream: Connection refused in phar:///usr/local/bin/acli/vendor/consolidation/self-update/src/SelfUpdateCommand.php on line 70
In SelfUpdateCommand.php line 74:
API error - no release found at GitHub repository acquia/cli
self:update [--stable] [--preview]
I think something needs to be added to check for proxy settings and apply them to the stream context, if necessary, but I'm not quite sure how to access proxy settings in this script:
Maybe this package should be using the Symfony Http Client instead of handling its own stream context. Otherwise it would need to copy whatever Symfony is doing under the hood.
I'm behind a proxy and the
self-update
command breaks because it does not take my proxy environment variables into consideration when checking github for the latest release in this file:self-update/src/SelfUpdateCommand.php
Line 55 in ed68ed6
Specifically I'm getting this error when trying to
self-update
Acquia CLI:I think something needs to be added to check for proxy settings and apply them to the stream context, if necessary, but I'm not quite sure how to access proxy settings in this script:
The text was updated successfully, but these errors were encountered: