Open snowleopard opened 5 years ago
Hmm. Isn't there an implementation of this somewhere, that we could just use or steal?
@alpmestan Presumable </>
does the right thing and we used to have a -/- b = unifyPath (a </> b)
but that was very slow due to unifyPath
, which we need, as otherwise Windows paths are a mess of slashes looking in random directions. We should clearly be able to do better, but noone has yet come up with a good plan.
I've tried changing the build root on Windows like this:
and this:
But both fail with errors:
and
Clearly we are not handling paths correctly. I suspect we oversimplified our implementation of
-/-
:https://github.com/snowleopard/hadrian/blob/master/src/Hadrian/Utilities.hs#L133-L140
There is already an issue about
-/-
: #434, but I'm not sure if it's necessarily a duplicate.