scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Dandelion on Windows :( #24

Closed SimplGy closed 11 years ago

SimplGy commented 11 years ago

I know this isn't probably going to be super popular, but I work on both mac and windows platforms and I want to be able to use Dandelion on both because it's awesome.

I used the Ruby for Windows installer and added the dev kit, but running dandelion deploy throws a TypeError.

C:\Users\Eric\Projects\simplyDone>ruby -v
ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
C:\Users\Eric\Projects\simplyDone>gem -v
1.8.24
C:\Users\Eric\Projects\simplyDone>dandelion -v
Dandelion 0.3.9
C:\Users\Eric\Projects\simplyDone>dandelion deploy
Connecting to ftp://deployer@mysite.com/simplydone
C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162:in `spawn': can't convert nil into String (TypeError)
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162:in `spawn'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:307:in `popen4'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn/child.rb:105:in `exec!'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn/child.rb:80:in `initialize'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/git.rb:345:in `new'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/git.rb:345:in `native'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/git.rb:372:in `method_missing'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/git-ruby.rb:110:in `rev_parse'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/git-ruby.rb:66:in `rev_list'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/commit.rb:120:in `find_all'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grit-2.5.0/lib/grit/repo.rb:427:in `commit'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/git.rb:57:in `initialize'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/deployment.rb:23:in `new'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/deployment.rb:23:in `initialize'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/deployment.rb:72:in `initialize'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/deployment.rb:12:in `new'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/deployment.rb:12:in `create'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/command.rb:122:in `deployment'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/command/deploy.rb:30:in `execute'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/application.rb:38:in `block in execute'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/command.rb:92:in `initialize'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/application.rb:36:in `new'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/application.rb:36:in `execute'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/lib/dandelion/application.rb:7:in `execute'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dandelion-0.3.9/bin/dandelion:7:in `<top (required)>'
    from C:/Ruby193/bin/dandelion:23:in `load'
    from C:/Ruby193/bin/dandelion:23:in `<main>'

I don't know really understand the runtime so I'm not sure where to look for cracks. I'm sure it's in my setup of the ruby for windows thing, but who knows. I understand if you want to close this as not your issue :)

scttnlsn commented 11 years ago

This is a duplicate of #20. A library that Dandelion depends (https://github.com/mojombo/grit) on doesn't work on Windows at the moment.