Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Proxy authentication settings #70

Open
rahulmutt opened this issue Jan 6, 2016 · 5 comments
Open

Proxy authentication settings #70

rahulmutt opened this issue Jan 6, 2016 · 5 comments

Comments

@rahulmutt
Copy link

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.

@xsc xsc added the question label Jan 6, 2016
@xsc
Copy link
Owner

xsc commented Jan 6, 2016

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

@rahulmutt
Copy link
Author

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

@xsc xsc removed the question label Jan 6, 2016
@xsc
Copy link
Owner

xsc commented Jan 6, 2016

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)?

@rahulmutt
Copy link
Author

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

@xsc
Copy link
Owner

xsc commented Feb 13, 2021

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"]?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants