Use std::path::absolute instead of canonicalize#117
Conversation
|
Thanks a lot for contributing! The green CI is deceptive unfortunately and it wasn't easy to reproduce, but when doing this… …I could see what I suspected: I think this is fine, as the different MSRV is behind a feature toggle, but it shows CI is definitely under-tested. Let me see if I can make this a bit safer. |
|
Ah, thanks for catching that! I admit I was a bit confused for a sec. If it's fine to raise the MSRV for this feature only then that's great! Alternatively, as |
…RSV there Update cross-platform-testing.yml
|
Oh, you fixed CI for me, nice, thanks! Like I said, the MSRV is for the non-feature toggled version of the crate only, so features can come with their own MSRVs. All good. |
canonicalizecan fail on some devices. This PR instead usesstd::path::absolutewhich has similar normalisation properties but will not fail for any valid path. The only real difference betweenabsoluteandcanonicalizeis thatabsolutedoes not resolve symlinks and does not produce\\?\paths (unless they're passed in as such). Note that dunce is still used in case the user passed in a path starting with\\?\.