Skip to content
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

Plumb the custom certs file through to Pip (via Pex) #10837

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Sep 23, 2020

Pip makes its own network connections, so may need the certs file.

Fortunately Pex already plumbs this through, using the --cert flag.

[ci skip-rust]

[ci skip-build-wheels]

[ci skip-rust]

[ci skip-build-wheels]
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thanks for adding a test.

Comment on lines +112 to +113
# The certs file will typically not be in the repo, so we can't digest it via a PathGlobs.
# Instead we manually create a FileContent for it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stuhood bump on our convo about porting PathGlobsAndRoot to the Async API. This is really not great to have Path.read_bytes() in a rule. Fine as a temporary workaround, but I think this shows the need.

We can caution plugin authors about the risks of using it. They're adults.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should add absolute file reads. #10360, #10769, and this usecase all require them. Opened #10842.

@coveralls
Copy link

coveralls commented Sep 23, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling 1dc0fa5 on benjyw:pass_certs_to_pip into f8a0b0f on pantsbuild:master.

# 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]
@benjyw benjyw merged commit b85e413 into pantsbuild:master Sep 23, 2020
@benjyw benjyw deleted the pass_certs_to_pip branch September 23, 2020 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants