buildfoundation / mainframer

Tool for remote builds. Sync project to remote machine, execute command, sync back.
Apache License 2.0
1.73k stars 161 forks source link

Generate proper remote path from Windows path #287

Open vilcans opened 1 year ago

vilcans commented 1 year ago

Thanks for this software! I had been using my own bash script for this until now and was going to implement it in Rust, but now that you did it I don't have to!

Anyway, Windows client support opens up the use case of letting my poor friends with Windows machines build things on my server. Without this patch, mainframer tries to create a directory directly under my home directory (instead of under ~/mainframer) and with a name containing a colon which causes rsync to fail.

This fixes two things with canonical paths in Windows:

With this fix, I can run the client in MSYS2 in Windows. It should work with any shell where there is an rsync command, like Cygwin.