Skip to content

Doesn't account for HTTP_PROXY or HTTPS_PROXY #12

Description

@rwols

In the postinstall script a protoc binary is downloaded from a URL using node-fetch:

const response = await fetch.default(releases[release]);

But, neither HTTP_PROXY nor HTTPS_PROXY are being taken into account. This causes the download to hang in environments with a restricted firewall (e.g. some companies).

Would it be possible to account for http proxies?

We could use node-http-proxy-agent if the HTTP_PROXY or the HTTPS_PROXY environment variable is defined: https://stackoverflow.com/questions/60162485/how-to-configure-node-fetch-to-use-the-company-proxy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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