Skip to content

Eagerly build root store on miscellaneous Unix platforms #171

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

Merged
merged 6 commits into from
Jun 1, 2025
Merged

Conversation

djc
Copy link
Member

@djc djc commented Apr 25, 2025

In rust-lang/rustup#4305 we found that errors due to not being able to find platform roots (on Fedora) were being silently ignored partly due to the lazy loading of roots in the others::Verifier used on Linux and other non-darwin/Android Unices. @complexspaces worked around the immediate issue in #169, but there doesn't seem to be a clear motivation for lazy-loading, and simplifying it has the additional benefit of removing the need for the once_cell dependency on most platforms.

@djc djc requested review from cpu, ctz and complexspaces April 25, 2025 20:19
@djc djc force-pushed the eager-verifier branch 9 times, most recently from 3bed7df to 7c24d86 Compare April 28, 2025 08:28
@djc djc force-pushed the eager-verifier branch 2 times, most recently from 394fdf9 to 73d99b4 Compare April 28, 2025 13:36
@cpu
Copy link
Member

cpu commented Apr 28, 2025

Is there some larger context/motivation that can be called out in the PR desc?

@djc
Copy link
Member Author

djc commented Apr 28, 2025

Is there some larger context/motivation that can be called out in the PR desc?

Yes, done.

@djc djc force-pushed the eager-verifier branch from b16ce14 to 12926b6 Compare May 1, 2025 11:16
@djc djc force-pushed the eager-verifier branch 2 times, most recently from 01697ba to e13f0b6 Compare May 5, 2025 20:44
Copy link
Collaborator

@complexspaces complexspaces left a comment

Choose a reason for hiding this comment

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

This looks wonderful overall! I just have a few small refactor suggestions.

@djc djc force-pushed the eager-verifier branch 2 times, most recently from 6f57c65 to 2ee9d22 Compare May 30, 2025 18:52
Copy link
Collaborator

@complexspaces complexspaces left a comment

Choose a reason for hiding this comment

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

LGTM

@djc djc force-pushed the eager-verifier branch from 2ee9d22 to 5a8d41e Compare June 1, 2025 19:26
@djc djc merged commit 694e914 into main Jun 1, 2025
22 checks passed
@djc djc deleted the eager-verifier branch June 1, 2025 19:31
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.

5 participants