heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
686 stars 111 forks source link

Getting uninitialized constant Heroku::Command::Repo::Tempfile NameError #26

Closed johnkchow closed 10 years ago

johnkchow commented 10 years ago

I'm trying to trigger a rebuild, but I'm getting the following error when I run the command heroku repo:rebuild -a my-app:

 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       uninitialized constant Heroku::Command::Repo::Tempfile (NameError)
    Backtrace:   /Users/johnchow/.heroku/plugins/heroku-repo/lib/heroku/command/repo.rb:136:in `run'
                 /Users/johnchow/.heroku/plugins/heroku-repo/lib/heroku/command/repo.rb:99:in `reset'
                 /Users/johnchow/.heroku/plugins/heroku-repo/lib/heroku/command/repo.rb:106:in `rebuild'
                 /Users/johnchow/.heroku/client/lib/heroku/command.rb:218:in `run'
                 /Users/johnchow/.heroku/client/lib/heroku/cli.rb:37:in `start'
                 /usr/local/heroku/bin/heroku:24:in `<main>'

    Command:     heroku repo:rebuild -a chance-api
    Plugins:     heroku-repo
    Version:     heroku-toolbelt/3.9.6 (x86_64-darwin10.8.0) ruby/1.9.3

I have the latest version of the heroku toolbelt (3.9.6). Any insights into what this issue might be?

alexflanagan commented 10 years ago

+1

tt commented 10 years ago

Thank you for reporting this, @johnkchow, and thank you for resolving it, @alexflanagan.

tt commented 10 years ago

Run heroku plugins:update and you should be good to go.

johnkchow commented 10 years ago

Thanks @alexflanagan and @tt for the quick turnaround! :+1: