-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback to copying on symlink-less MSYS2 #4817
Conversation
70b332d
to
2088029
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update to this - sorry for the number of comments, though most of them are in fact reverts!
Consider Ubuntu and Debian: most of the time we can just treat as Debian in terms of handling and then very occasionally we care that it's specifically Ubuntu. I think the Msys2/Cygwin API should be the same - most of the time we simply need to know that it's Cygwin-like and we can call that Cygwin. Then only the specific place where you want some handling that's just for Msys2 do we actually match on that. It makes the diff smaller too 🙂
I haven't fleshed out the change to OpamSystem.default_install_warning
- I think there should be Msys2-specific messages for that.
The suggested changes were made. |
574eed1
to
d53534a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the delay approving this (and thanks to @rjbou for rebasing it!). Thanks for this - the rsync support will either get extended to the Cygwin-side at some point or the whole thing will get replaced with Windows-aware OCaml versions but, in the meantime, this is a great stability improvement!
(it still needs to run through CI, which is presently suffering from another GitHub outage...) |
d53534a
to
49fb10d
Compare
Default MSYS2 installations "support" symlinking by copying. This commit adds a two-phase rsync (copy first without symlinks, then copy symlinks) so the MSYS2 copying behavior works.
49fb10d
to
ae4b5ec
Compare
Thanks a lot! |
Splitting up #4813:
For continuity this initial PR is as-is from the original PR, except the new title and a change in the commit description: