-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Make it possible to support no_proxy environment variable for download #6304
Comments
@lee-thurston There is currently no You can try unsetting your proxy environment variables, so Cypress doesn't use them. Here are the variables that are considered: cypress/cli/lib/tasks/download.js Lines 19 to 27 in 3fdc965
So, on macOS/Linux, this should work:
|
Ahh yeah, I tried doing that but only supplied the lower case version. Using that has made it work, thanks. |
@flotwig, do we need this at all?
When I set my environment variables like this:
After I replace the above code with
it works. It looks as if the the |
@konradtoenz If you are behind a corporate proxy, this code reading the HTTP_PROXY variables would be required to download Cypress. Did you test behind a properly configured corporate proxy? |
@jennifer-shehane I dont't argue that the The code in question seems to override this without reading the Case in point, when I have this:
|
I've encountered the same problem when installing cypress. The problem is that we don't have a corporate proxy but need to load some dependencies via proxy from a separate registry. So our current process to install npm dependencies is HTTP_PROXY=http://localhost:7001 HTTPS_PROXY=http://localhost:7001 NO_PROXY=localhost,.com,.io npm install (We pretty much have everything required in the NO_PROXY except for the registry needing to be proxied) This usually works fine, but with this issue in the download script we were not able to install the dependencies correctly as either the dependencies needing to be proxied fail or cypress. So I've added a PR tackling the issue. Also I've added a reason to the PR why I've still overwritten the proxy which would have been added in the request module otherwise, as mentioned by @konradtoenz. |
The code for this is done in cypress-io/cypress#17702, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When downloading Cypress, the no_proxy environment variable is not taken into account.
Desired behavior:
When downloading, I want Cypress to be able to use the no_proxy environment so that it doesn't go through the company proxy. Using CYPRESS_INSTALL_BINARY and downloading manually isn't really a solution as we don't want CI/CD build agents to download cypress every time. Installing cypress on every build agents doesn't seem like the best solution either.
Versions
Cypress: 3.8.3
The text was updated successfully, but these errors were encountered: