Closed ToBinio closed 1 year ago
Could you retry this with the latest version? It's probably still an issue though, and if you have a fix I'd be happy merge a PR. At that time I would take the liberty to also add windows CI runners to prevent regressions.
I am running into a minor problem with the sparse-http tests.
Problem
The URI to String conversions is locally(Windows) a bit off. It creates Uri like this:
https://index.crates.io/se\rd\serde
in practice this isn't a problem because most if not all client can handle such problems but the test don't.https://github.com/frewsxcv/rust-crates-index/blob/e0157d00a2fd4cc7652be81f9529b553314c8463/src/sparse_index.rs#L324
so the test always fails with:
Solution
The question now is if this should be fixed and if so how.
\
to/
std::path::MAIN_SEPARATOR
is wrong on Windows https://github.com/frewsxcv/rust-crates-index/blob/e0157d00a2fd4cc7652be81f9529b553314c8463/src/lib.rs#L333