Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use as a default rake task #54

Closed
rwz opened this issue Jul 16, 2013 · 3 comments
Closed

Impossible to use as a default rake task #54

rwz opened this issue Jul 16, 2013 · 3 comments

Comments

@rwz
Copy link

rwz commented Jul 16, 2013

I have a gem that I need to test against completely different sent of dependencies. There no such thing as "default" dependencies.

So, I've generated 4 Gemfiles with appraisal and would like to use one of them as a default, so when I run rake it'll actually lanch something like appraisal:default_gemset test. Actually, even appraisal rake task would be ok for default.

Unfortunately this doesn't work.

In my Rakefile I have this:

task :default => %w(appraisal test)

when I run rake i see this stacktrace:

jbuilder ➤  rake --trace                                                                                                      git:appraisal*
** Invoke default (first_time)
** Invoke appraisal (first_time)
** Invoke appraisal:all (first_time)
** Execute appraisal:all
rake aborted!
can't convert nil into Array
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/command.rb:7:in `+'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/command.rb:7:in `from_args'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/task.rb:39:in `block (3 levels) in initialize'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/file.rb:21:in `each'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/file.rb:21:in `each'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/file.rb:10:in `each'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/appraisal-0.5.2/lib/appraisal/task.rb:38:in `block (2 levels) in initialize'
/Users/rwz/.rbenv/versions/1.9.3-p392-perf/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
...
@rwz
Copy link
Author

rwz commented Jul 16, 2013

It seems that any appraisal task expects at least one argument to rake to be present which is not the case when it's used as a default.

@sikachu
Copy link
Contributor

sikachu commented Jul 16, 2013

Yeah, I can feel your pain there. I'm working on making Appraisal to be a standalone executable so we can cut out this Rake invocation tree. In the meantime, I'd suggest you to look at our setting in Paperclip which I think might work for you.

I'm going to keep this open until I can fix this behavior. Thanks for reporting in.

@mcmire
Copy link
Contributor

mcmire commented Aug 17, 2013

I've got a fix for this in #59.

@sikachu sikachu closed this as completed in a885488 Sep 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants