fix: GITHUB_TOKEN should not cause rustls CryptoProvider panic#2036
fix: GITHUB_TOKEN should not cause rustls CryptoProvider panic#2036thomas-zahner merged 2 commits intolycheeverse:masterfrom
Conversation
Fixes https://www.github.com/lycheeverse/lychee/issues/2024 Disables octocrab option which would lead to rustls/ring, so only rustls/aws-lc-rs is enabled. Honestly, it looks like an octocrab bug because its default option set would lead to incompatible rustls features being enabled: https://docs.rs/crate/octocrab/latest/features octocrab/rustls (default on) -> hyper-rustls/default -> rustls/aws-lc-rs octocrab/rustls-ring -> hyper-rustls/ring -> rustls/ring
|
@katrinafyi Thank you very much for the fix! The merge commit should which includes additional changes and causes the merge conflict should not be necessary. See https://github.com/thomas-zahner/lychee/commits/rustls-fix/ for a rebased version. (I again wasn't allowed to push to this branch) |
|
I'd sent you an invite to the repo. It should be in your email, or maybe there's a button at https://github.com/rina-forks/lychee. |
Ah thank you! I now got one step further. But due to branch rules/protections I'm unable to force push. Could you allow force pushes to all branches (or non-master) buy modifying the rule set or by deleting it? |
|
Done~ |
6d28a0f to
2a1b61a
Compare
29a60c9 to
d3f3c60
Compare
|
@katrinafyi Thank you. I think in that case it makes more sense to specifically test the function causing the panic instead of using such abstract cli tests. Do you agree with d3f3c60? |
|
Yeah I don't really mind either way. It is nice to be more specific. |
|
Thanks. I feel that being more specific with testing should be done when possible. In lychee we tend to have many CLI integration tests (which is great) but it might make sense to also have more "low-level" tests. |
|
It's true. I definitely use CLI tests more often just because they're easier to write 😅 |
|
Haha yes I also tend to do this, which might not always be ideal 😄 |
Fixes #2024
Disables octocrab option which would lead to rustls/ring, so only rustls/aws-lc-rs is enabled.
Honestly, it looks like an octocrab bug because its default option set would lead to incompatible rustls features being enabled: https://docs.rs/crate/octocrab/latest/features
octocrab/default -> octocrab/rustls -> hyper-rustls/default -> rustls/aws-lc-rs
octocrab/default -> octocrab/rustls-ring -> hyper-rustls/ring -> rustls/ring