gray-shoe-19951
04/14/2023, 12:53 AMhttp_proxy
, https_proxy
and no_proxy
env vars. However, it seems pants is not able to download the binary from our internal hosting and the reason appears to me is that it does not use no_proxy
. In other words, with http_proxy
and https_proxy
, it wont be able to download the binary from internal hosting since internal hosting is not publicly accessible. Extra info: if I do not override the url_template, pants can download external binary with http_proxy
and https_proxy
. Is it correct?gray-shoe-19951
04/14/2023, 2:11 PMenough-analyst-54434
04/14/2023, 2:15 PMjsirois@Gill-Windows:~/dev/pantsbuild/pants (main) $ git grep -i no_proxy
jsirois@Gill-Windows:~/dev/pantsbuild/pants (main) $ git grep -i http_proxy
docs/markdown/Using Pants/restricted-internet-access.md:Setting `HTTP_PROXY` and `HTTPS_PROXY`
docs/markdown/Using Pants/restricted-internet-access.md:You may need to set standard proxy-related environment variables, such as `http_proxy`, `https_proxy` and `all_proxy`, in executed subprocesses:
docs/markdown/Using Pants/restricted-internet-access.md:env_vars.add = ["http_proxy=<http://myproxy>", "https_proxy"]
jsirois@Gill-Windows:~/dev/pantsbuild/pants (main) $ git grep -i https_proxy
docs/markdown/Using Pants/restricted-internet-access.md:Setting `HTTP_PROXY` and `HTTPS_PROXY`
docs/markdown/Using Pants/restricted-internet-access.md:You may need to set standard proxy-related environment variables, such as `http_proxy`, `https_proxy` and `all_proxy`, in executed subprocesses:
docs/markdown/Using Pants/restricted-internet-access.md:env_vars.add = ["http_proxy=<http://myproxy>", "https_proxy"]
docs/markdown/Using Pants/restricted-internet-access.md:Note that if you leave of the env var's value, as for `https_proxy` above, Pants will use the value of the same variable in the environment in which it is invoked.
enough-analyst-54434
04/14/2023, 2:16 PMenough-analyst-54434
04/14/2023, 2:19 PMhttp(s)_proxy
env vars but requires code to disable proxies (i.e. probably does not support no_proxy
).gray-shoe-19951
04/14/2023, 9:19 PM