-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add requests_ca_bundle to settable_env_vars #10909
Conversation
Thanks @thamenato. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @thamenato !
@thamenato Can you clarify which process needed this env var set? |
I assumed it had to be all PEX creation processes since those are the ones that use Pip which uses requests to do index scans and downloads. |
That's what I was imagining, but then why didn't this suffice? #10837 |
Hrm. I just tested Pex directly on the CLI and using a relative path for @thamenato can provide more detailed output in a new issue? Perhaps modify the previously failing Pants command to use: |
Aha! Plugins. @thamenato I'm guessing you have "setuptools>=41.0" in your |
Fix is here: #10910 |
Also add in note about confusing proxy env var spellings. # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
#10910 was not the fix for this issue, but with @thamenato's help this is getting narrowed down over here: pex-tool/pex#1058 |
Internal only changes left off from the changelog: * Use cpython types in Rust functions that manipulate python objects (#10942) `PR #10942 <https://github.com/pantsbuild/pants/pull/10942>`_ * update libz-sys version to fix macOS compile error (#10941) `PR #10941 <https://github.com/pantsbuild/pants/pull/10941>`_ * Upgrade to Rust stable 1.47.0. (#10933) `PR #10933 <https://github.com/pantsbuild/pants/pull/10933>`_ * Finish CreateDigest Directory cleanup. (#10935) `PR #10935 <https://github.com/pantsbuild/pants/pull/10935>`_ * Hotfix broken import from merge conflict (#10934) `PR #10934 <https://github.com/pantsbuild/pants/pull/10934>`_ * Revert "Port nailgun client to rust (#10865)" (#10929) `PR #10929 <https://github.com/pantsbuild/pants/pull/10929>`_ * An ExternalTool for downloading the grpc_python_plugin. (#10927) `PR #10927 <https://github.com/pantsbuild/pants/pull/10927>`_ * Port nailgun client to rust (#10865) `PR #10865 <https://github.com/pantsbuild/pants/pull/10865>`_ * print stacktraces during import errors (#10906) `PR #10906 <https://github.com/pantsbuild/pants/pull/10906>`_ * fs.Digest is declared in Rust (#10905) `PR #10905 <https://github.com/pantsbuild/pants/pull/10905>`_ * add requests_ca_bundle to settable_env_vars (#10909) `PR #10909 <https://github.com/pantsbuild/pants/pull/10909>`_ [ci skip-rust]
Problem
If the user has a proxy set with http_proxy and https_proxy and the proxy uses a self-signed certificate you might still get invalid SSL Cert errors when the subprocess tries to get the packages externally.
Solution
Allow the user to pass the REQUESTS_CA_BUNDLE environment variable that points to the self-signed certificate.