clj has to use a http_proxy to access the repo.
At https://clojure.org/reference/deps_edn there seems to be no reference to proxies.
How to tell clj to use one?
clj doesn’t have to use the http_proxy environment variable, it just has to use the right HTTP proxy. The environment variable is specific to Leiningen and might differ for other software.
How to tell clj to use one?
I don’t know, I usually configure a system-wide proxy in a way that routes all the requests to particular hosts to that proxy.
Well, as I said - those environment variables are not something standard that must be respected by everything that uses network. Some programs might use those vars, some might not, some might even expect a different format in them.
E.g. on my machine, links doesn’t respect those variables at all, I have to provide the -http-proxy option via its CLI or configure a system-wide proxy.
Judging by the source code, clj should respect any Maven settings you put into ~/.m2/settings.xml, and that file allows you to configure proxies as well.
been looking for something like this for a while (but using a socks proxy). With lein it was pretty trivial; nobody had an answer to clj. This looks like a path forward, thanks for running it down.