lein-ancient icon indicating copy to clipboard operation
lein-ancient copied to clipboard

Proxy authentication settings

Open rahulmutt opened this issue 9 years ago • 5 comments

How can I set my proxy settings so that lein-ancient can connect to the internet properly? I'm receiving a status code 407 from those.

rahulmutt avatar Jan 06 '16 16:01 rahulmutt

You should be able to set the http_proxy/https_proxy environment variables to point at your proxy.

xsc avatar Jan 06 '16 16:01 xsc

Both are set properly. lein itself is working fine, but lein ancient isn't.

rahulmutt avatar Jan 06 '16 16:01 rahulmutt

When I last checked, clj-http (the HTTP client used by lein-ancient) advertised support for proxies and proxy authentication based on environment/properties, but there is at least one issue (dakrone/clj-http#225) indicating that that is not completely true.

A workaround could probably be added in lein-ancient but I'm not perfectly comfortable with that.

Also, for completeness' sake: What Java/Leiningen versions are you using (see lein version)?

xsc avatar Jan 06 '16 16:01 xsc

Leiningen 2.5.2 on Java 1.8.0_76 OpenJDK 64-Bit Server VM

rahulmutt avatar Jan 06 '16 17:01 rahulmutt

Hey there! It has been quite some time, but with ancient-clj's recent changes we might be able to leverage Leiningen's existing resolution infrastructure. This should include proxies. If you're still interested after five years, could you verify using [lein-ancient "1.0.0-RC1"]?

xsc avatar Feb 13 '21 15:02 xsc