undefined method `fetch_git_uri' when trying to install #7

RogerPodacter opened this Issue May 22, 2011 · 6 comments


None yet

4 participants


After running heroku plugins:install git://github.com/hone/heroku_herocutter.git, I see:

/Users/tom/.heroku/plugins/heroku_herocutter/lib/heroku_herocutter.rb:26:in `install': undefined method `fetch_git_uri' for #<Heroku::Command::Plugins:0x1036a36d8 @args=[], @options={}> (NoMethodError)
    from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/lib/heroku/command.rb:117:in `send'
    from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/lib/heroku/command.rb:117:in `run'
    from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/bin/heroku:14
    from /usr/bin/heroku:19:in `load'
    from /usr/bin/heroku:19

that's an odd one. are you using RVM? fetch_git_uri is defined on line 102 of heroku_herokucutter.rb

That said, I know that the method isn't getting called. As I can install heroku_herocutter with Ruby 1.9.2 and the latest heroku gem (2.1.4) without getting that error. But when I try to install a herocutter plugin, like:

heroku plugins:install colorize_console

Then I get an error message such as:
"Could not install colorize_console. Please check the URL and try again"

I wonder if Ruby 1.8 picks up on that better than 1.9 does.


No RVM, just plain old Ruby 1.8. Yeah, it's weird; it only started happening when I upgraded to the latest Heroku gem, if that's any help


I run into #4 when I try installing the plugin with no app specified, and this issue when I specify an app. Weird.


@RogerPodacter did you end up finding a solution?


This may help people here and others that find this thread with a similar problem, I discovered in my version of the heroku command line tool (2.19.2) that the https method to access the git repo doesn't work anymore.

So instead of:
heroku plugins:install https://github.com/heroku/heroku-labs.git

Change it to:
heroku plugins:install git://github.com/heroku/heroku-labs

So probably in the case of this repo, you would install it like this:
heroku plugins:install git://github.com/hone/heroku_herocutter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment