wycats/thor — Issue #183: Invalid cross-device link
Author: bkabrda
Created: 2011-10-10 06:06:34+00:00
State: open

Using thor 0.15.0.rc2, running the tests, I get 1 failure:

Thor::Actions::CreateLink#invoke! creates a hard link for :symbolic => false
Failure/Error: capture(:stdout){ @action.invoke! }
Errno::EXDEV:
Invalid cross-device link - (/tmp/config.rb20111010-1025-sqmntf, /home/bkabrda/test/thor/spec/sandbox/doc/config.rb)

rspec ./spec/actions/create_link_spec.rb:36 # Thor::Actions::CreateLink#invoke! creates a hard link for :symbolic => false

The invalid cross-device link error occured probably due to the fact that /tmp/config.rb20111010-1025-sqmntf and /home/bkabrda/test/thor/spec/sandbox/doc/config.rb are on different partitions.

I'm not sure where this function is used, but either it never links two files on different partitions/filesystems and then the test should be repaired or it can and then the actual thor function should be fixed.

Thank you,
Bohuslav Kabrda.