heroku/heroku-pg-extras

"already initialized constant" warnings

Closed this issue · 3 comments

When I execute any commands on heroku I get a couple of "already initialized constant" warnings from this plugin:

/home/fletch/.heroku/plugins/heroku-pg-extras/lib/heroku/client/heroku_postgresql_backups.rb:6: warning: already initialized constant Heroku::Client::HerokuPostgresqlApp::Version
/usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:3: warning: previous definition of Version was here
/home/fletch/.heroku/plugins/heroku-pg-extras/lib/heroku/command/pg_backups.rb:62: warning: already initialized constant Heroku::Command::Pg::MaybeAttachment
/usr/local/heroku/lib/heroku/command/pg_backups.rb:69: warning: previous definition of MaybeAttachment was here

Are you using the latest version? Try heroku plugins:update. We moved some functionality into the main toolbelt, and unfortunately that means an older extras version with a newer toolbelt will give that warning.

Ah, I see. That did the trick. Thanks for the quick response!

No problem.