Skip to content

Fix Windows CI#300

Open
ncihnegn wants to merge 3 commits into
composefs:mainfrom
ncihnegn:windows
Open

Fix Windows CI#300
ncihnegn wants to merge 3 commits into
composefs:mainfrom
ncihnegn:windows

Conversation

@ncihnegn

@ncihnegn ncihnegn commented Aug 22, 2022

Copy link
Copy Markdown
Contributor

To fix #299.

@alexcrichton

Copy link
Copy Markdown
Collaborator

Personally I don't want to get in to the business of interpreting paths too much since it's already tricky enough. Stripping a leading // already feels quite dubious. Is there perhaps a way to fix the test or otherwise test for a different result on Windows? Or use different Path APIs on Windows?

@ncihnegn

Copy link
Copy Markdown
Contributor Author

Are you open to use a crate for UnixPath?

@alexcrichton

Copy link
Copy Markdown
Collaborator

I'm not personally familiar with any such crates, is there no way to do this using the standard library?

@ncihnegn

ncihnegn commented Sep 2, 2022

Copy link
Copy Markdown
Contributor Author

I think using UnixPath is the cleanest way.
See rust-lang/rust#100833.

@ncihnegn ncihnegn force-pushed the windows branch 2 times, most recently from 80bc06f to c0ffc46 Compare September 12, 2022 08:55
@ncihnegn

Copy link
Copy Markdown
Contributor Author

Simplified a bit without using a crate; please review.

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.

Windows CI is failing due to std::path::Path

2 participants