bored-glass-58755
08/22/2022, 10:40 PM./pants package
fails with following error:
15:55:08.93 [ERROR] 1 Exception encountered:
Exception: Error downloading file: error sending request for url (<https://github.com/pantsbuild/pex/releases/download/v2.1.90/pex>): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
Is there a proxy setting that can be configured in Pants?enough-analyst-54434
08/22/2022, 10:42 PMbored-glass-58755
08/22/2022, 10:57 PM[subprocess-environment]
env_vars.add = ["http_proxy=<http://myproxy>", "https_proxy"]
But it doesnโt work. The error remains. According to the page, it should take the values from the current shell environment if no values are mentioned.hundreds-father-404
08/22/2022, 10:58 PMecho $https_proxy
defined in your shell? Note that sometimes it is all capsbored-glass-58755
08/22/2022, 11:00 PMpants.toml
hundreds-father-404
08/22/2022, 11:01 PMca_certs_path
may be relevant?enough-analyst-54434
08/22/2022, 11:04 PMcurl -O <https://github.com/pantsbuild/pex/releases/download/v2.1.90/pex>
work?bored-glass-58755
08/22/2022, 11:11 PM% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0curl: (56) Proxy CONNECT aborted
enough-analyst-54434
08/22/2022, 11:17 PMcurl --cacert ...
working 1st may provide a quicker feedback loop.bored-glass-58755
08/22/2022, 11:18 PMenough-analyst-54434
08/22/2022, 11:19 PMbored-glass-58755
08/22/2022, 11:20 PMenough-analyst-54434
08/22/2022, 11:20 PMbored-glass-58755
08/22/2022, 11:23 PMenough-analyst-54434
08/22/2022, 11:25 PM[python-repos] indexes / repos
to your internal artifact repository should cover most things. See here for more detail on everything needed: https://github.com/pantsbuild/pants/issues/16328bored-glass-58755
08/22/2022, 11:27 PMDownloading the Pex PEX.
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.62/pex> verified.
enough-analyst-54434
08/22/2022, 11:29 PMbored-glass-58755
08/22/2022, 11:30 PMenough-analyst-54434
08/22/2022, 11:31 PMcurl -L -O <https://github.com/pantsbuild/pex/releases/download/v2.1.90/pex>
work then?bored-glass-58755
08/22/2022, 11:33 PMenough-analyst-54434
08/22/2022, 11:34 PMbored-glass-58755
08/22/2022, 11:34 PMenough-analyst-54434
08/22/2022, 11:35 PM$ curl -vvv -O <https://github.com/pantsbuild/pex/releases/download/v2.1.90/pex> 2>&1 | grep CAfile
* CAfile: /etc/ssl/certs/ca-certificates.crt
bored-glass-58755
08/22/2022, 11:41 PMpants.toml
and package worked.enough-analyst-54434
08/22/2022, 11:42 PM