Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
File.symlink broken on windows #4669
On windows 10 JRuby cannot use File.symlink (MRI ruby can). Consider the following:
Not an admin(MRI):
Currently, the react on rails gem needs this method to work during asset compilation. This means my maven build cannot complete on a windows machine.
This was originally found on 9.1.8, and may be related to:
Provide at least:
Other relevant info you may wish to add:
added a commit
Jun 14, 2017
Pretty interesting bug as it turns out. JRuby has not changed since 126.96.36.199 implemented this feature but it appears FFI used to search all ffi_libs in a module to bind to a function. At some point this ended up only using the last specified ffi_lib and failing if it was not on it. The caveat to that behavior if is the function is on libc it will load regardless as to whether it is listed in ffi_lib (e.g. it is special).