Skip to content

Support alternative transport or proxy #408

@skyred

Description

@skyred

When ALL_PROXY, HTTPS_PROXY, HTTP_PROXY are present in the environment, composer can work with them, but patching stops working, below is an example error message:

Gathering patches for dependencies. This might take a minute.
  - Installing drupal/commerce_stripe (dev-1.x 66b6b4d): Cloning 66b6b4de23 from cache
  - Applying patches for drupal/commerce_stripe
    https://www.drupal.org/files/issues/2021-10-04/commerce_stripe-allow-off_session-payment-intents-for-recurring-payments-3171408-34.patch (Allow off_session payment intents for recurring payments)
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/2021-10-04/commerce_stripe-allow-off_session-payment-intents-for-recurring-payments-3171408-34.patch" file could not be downloaded: Failed to open stream: Unable to find the socket transport "socks5" - did you forget to enable it when you configured PHP?

                                                                                                                                                                                 
  [Exception]                                                                                                                                                                    
  Cannot apply patch Allow off_session payment intents for recurring payments (https://www.drupal.org/files/issues/2021-10-04/commerce_stripe-allow-off_session-payment-intents  
  -for-recurring-payments-3171408-34.patch)!

Probably, this is caused by http client isn't configured to support proxy (socks5), the solution is to find the code, and copy it from composer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions