DomT4 / homebrew-autoupdate

:tropical_drink: An easy, convenient way to automatically update Homebrew.
BSD 2-Clause "Simplified" License
1.04k stars 57 forks source link

Warning: Calling 'brew autoupdate'. #147

Open iAGorynT opened 1 month ago

iAGorynT commented 1 month ago

I've attached a new "Warning" message that just started appearing when running / using autoupdate. Wondered if anyone else was having this issue as well?

Thank you for any insights.

Screenshot 2024-10-02 at 7 52 05 AM
swissbuechi commented 1 month ago

Thank you.

I'll try to reproduce the issue.

Did it the message appear after you installed the tap?

Edit: Based on your screenshot it appears when running the status command.

iAGorynT commented 1 month ago

Thank you for your reply. I received this warning with any autoupdate command (i.e. start, stop, help, change log list, etc. I believe this warning began after the HomeBrew 4.4.0 update which was released yesterday.

clayharris commented 1 month ago

I see this as well, and it was apparently added to Homebrew about 2 weeks ago

iAGorynT commented 1 month ago

Thank you for your insight. Interesting to see updated code base.

sheeeng commented 1 month ago

I got the same warning too.

Warning: Calling `brew autoupdate'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits from `Homebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead.
Please report this issue to the Homebrew/homebrew-autoupdate tap, or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/homebrew/homebrew-autoupdate/cmd/autoupdate.rb:11
savakazakov commented 1 month ago

Same here:

Warning: Calling brew autoupdate'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits fromHomebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead. Please report this issue to the domt4/homebrew-autoupdate tap (not Homebrew/brew or Homebrew/homebrew-core), or even better, submit a PR to fix it: /opt/homebrew/Library/Taps/domt4/homebrew-autoupdate/cmd/autoupdate.rb:11

Unfortunately, I don't see brew autoupdating and I'm wondering if this is the issue. Anyone else having the same problem?

I'm using: brew autoupdate start 86400 --upgrade --cleanup --immediate --sudo

dvasquezavant commented 1 month ago

I received it as well: Warning: Calling brew autoupdate'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits fromHomebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead. Please report this issue to the domt4/homebrew-autoupdate tap (not Homebrew/brew or Homebrew/homebrew-core), or even better, submit a PR to fix it: /opt/homebrew/Library/Taps/domt4/homebrew-autoupdate/cmd/autoupdate.rb:11

dvasquezavant commented 1 month ago

I also received this ask to update the tooling:

brew autoupdate start 86400 --upgrade --cleanup --immediate --sudo

Error: --sudo requires https://formulae.brew.sh/formula/pinentry-mac to be installed. Please run brew install pinentry-mac and try again.

jason-young-ctct commented 1 week ago

I just received this warning as well. Commands used in order below:

brew tap domt4/autoupdate
brew install pinentry-mac
brew autoupdate start 43200 --upgrade --cleanup --greedy --immediate --sudo

Output received:

Warning: Calling `brew autoupdate'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits from `Homebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead.
Please report this issue to the domt4/homebrew-autoupdate tap (not Homebrew/brew or Homebrew/homebrew-core), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/domt4/homebrew-autoupdate/cmd/autoupdate.rb:11

Homebrew will now automatically update every 12 hours, now, and on system boot.
Ncage1974 commented 1 week ago

same here..... Just installed tonight