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
Add Proxy Support. #29
Comments
Have you read the README yet? https://github.com/borkdude/deps.clj#proxy-environment-variables |
Oh I'm sorry, you mean for downloading the jar itself. Good point! You can read in this issue how to download the jar yourself: And a PR to add proxy for this is welcome. I think adding java properties to the executable:
like:
might already work as of now, since GraalVM binaries do pick up these properties:
|
@sundbp Since you wrote the proxy stuff, you might know how to test/implement this? |
Ah, it seems to be effective!
So maybe if we set these properties manually based on the environment variables, it will work. |
Your workaround should work - my PR just set those same properties from env vars for non-first download cases (but not for the initial clojure jar download..). My earlier PR probably should probably have done this but I must have worked around it by some other means e.g. same as your suggestions above. I'm not behind a proxy anymore but I think it's a relatively small change to this fn: https://github.com/borkdude/deps.clj/blob/master/src/borkdude/deps.clj#L188 Answers here shows how to add proxy info: https://stackoverflow.com/questions/1432961/how-do-i-make-httpurlconnection-use-a-proxy I'll try to spend 30min on it later - no promises. |
Please add proxy support.
Many tools just check for environment variables
https_proxy
andno_proxy
and use those if present.At the moment, the Windows version won't work behind proxies with the error:
Thanks in advance.
The text was updated successfully, but these errors were encountered: