Hartin, Brian
2010-05-26 20:42:29 UTC
Hi all,
In Rake::AltSystem#repair_command, you're now appending "call " to the
beginning of the command. This has the effect of losing the working
directory. For example, running 'rake test' from the root directory of
a project will fail to find its unit tests. It also causes a lot of gem
installation failures, as 'gem install' often seems to run rake from the
installed gem directory to complete the installation, and fails to find
necessary files.
This is not backward compatible, obviously.
1 - Is there a workaround?
2 - Why is the 'call' necessary? Is this part of preserving the linux
'sh' semantics you mentioned? If so, how would one avoid this problem
in linux?
Thanks,
Brian Hartin
In Rake::AltSystem#repair_command, you're now appending "call " to the
beginning of the command. This has the effect of losing the working
directory. For example, running 'rake test' from the root directory of
a project will fail to find its unit tests. It also causes a lot of gem
installation failures, as 'gem install' often seems to run rake from the
installed gem directory to complete the installation, and fails to find
necessary files.
This is not backward compatible, obviously.
1 - Is there a workaround?
2 - Why is the 'call' necessary? Is this part of preserving the linux
'sh' semantics you mentioned? If so, how would one avoid this problem
in linux?
Thanks,
Brian Hartin