[Rake-devel] gem task runs task instead of packaging dir when dir and task names are the same

Jim Weirich jim at weirichhouse.org
Fri Apr 13 00:07:16 EDT 2007


aslak hellesoy wrote:
 > How to reproduce:
 >
 > 1) Download and install the 1.8.6-25 version of the One Click Ruby
 > installer for Windows
 > 2) Check out the RSpec core: svn co
 > svn://rubyforge.org/var/svn/rspec/trunk/rspec/trunk/rspec rspc
 > 3) cd rspec
 > 4) rake gem
 >
 > Apparently, instead of packaging the examples, failing_examples and
 > spec directories, Rake instead decides to run the tasks by these
 > names. The failing_examples task fails (and is intended to fail), but
 > Rake shouldn't be running it in the first place - it should package
 > the dirs.
 >
 > This behaviour has only been observed on Windows, with Ruby 1.8.6-25
 > and 1.8.5-something - both with Rake 1.7.2.
 >
 > I'd rather not rename tasks and/or directories to work around this.

Interesting.  MacOSX and Cygwin on windows both work, but I've confirmed 
the problem with the plain windows installation.  I don't know why yet. 
  Thanks for the report.

-- 
-- Jim Weirich      jim at weirichhouse.org     http://onestepback.org
-- In theory, practice and theory are the same.
-- In practice, they are different.


More information about the Rake-devel mailing list