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

undefined method `fetch_git_uri' when trying to install #7

Open
RogerPodacter opened this issue May 22, 2011 · 6 comments
Open

undefined method `fetch_git_uri' when trying to install #7

RogerPodacter opened this issue May 22, 2011 · 6 comments

Comments

@RogerPodacter
Copy link

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
@jwang
Copy link

jwang commented May 22, 2011

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.

@RogerPodacter
Copy link
Author

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

@jwang
Copy link

jwang commented May 22, 2011

Not sure. I'm not the owner, but I am trying to fix it for myself. If I get
it working again I'll send a pull request. I'm surprised you didn't run into
issue #4 like others.
On May 21, 2011 6:16 PM, "RogerPodacter" <
[email protected]>
wrote:

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

Reply to this email directly or view it on GitHub:
#7 (comment)

@RogerPodacter
Copy link
Author

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

@bhellman1
Copy link

@RogerPodacter did you end up finding a solution?

@vbrendel
Copy link

vbrendel commented Feb 9, 2012

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants