Remove hack for FileUtils.mv due to incorrect error raised from File.rename #5168
In MRI, File.rename will raise an EXDEV if the rename is attempted with paths that span devices (mounts). Up until this PR, we would raise EACCES in such a situation, requiring us to modify fileutils.rb to deal with both errors.
Because this is tweaking a very core behavior of File and FileUtils, I'm pushing to a branch to see how it affects our test runs.
This fix is an attempt to deal with at least part of Bundler's vendoring of a non-JRuby fileutils.rb. See rubygems/bundler#6532.
The text was updated successfully, but these errors were encountered:
This fix is needed because Bundler now vendors an MRI version of fileutils that does not include our hacks for the incorrect EACCES error. That is a larger issue since there's other hacks we have not eliminated, but this fixes a primary issue bundling libraries.