DomT4 / homebrew-autoupdate

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

Require Formula explicitly #32

Closed agross closed 3 years ago

agross commented 4 years ago

Closes #31

DomT4 commented 3 years ago

Thank you @agross. Sorry for the wait on this, and generally the quiet couple months here. As I noted in another PR just now, I had a lot of internet issues after moving house, which shouldn't be an issue going forwards.

BrianAMartin221 commented 3 years ago

Hey, no need to apologize when providing a free open source tool!

I'm having what seems like an odd issue I have 3 machines that I use Homebrew on 2 x on Catalina 1 x on Mojave. One of the Catalina machines has been running as expected for months with your Tap. It updates homebrew every 8 hours and I get a notification.

For some reason a few weeks ago it stopped running currently on my Mojave and the other Catalina machine. I ended up uninstalling Homebrew on both of them, re-installing all of my brew items, and re-installing brew autoupdate, that's when I noticed the notifications were coming through. I tried running the script daisy changed without the "enable-notification" and then running that by itself but still no notifications. When I run the status command it says autoupdate is installed and running but if I wait a day and run brew update myself I always seem to have a few updates.

So I have a feeling its not running correctly which is more than likely of my doing. But let me know if there is any other de-bugging or command I could run to try and fix the issue.

DomT4 commented 3 years ago

There should be logging in ~/Library/Logs/com.github.domt4.homebrew-autoupdate, one for regular output and the other for error logging. Could be worth taking a peek in there to see if there's anything noticeable.

I'm hoping to get some time Sunday to generally catch up on some of the changes Homebrew has made and the resulting questions posed in various PRs/Issues in this tap, as well as generally thinking a bit more about my prior design choices on different aspects. This tap was designed to be a very low maintenance code base with very few "moving parts" as it were so there'd be minimal breakage regardless of whatever direction Homebrew pushed itself in over time, but that logic hasn't proven 100% flawless.

BrianAMartin221 commented 3 years ago

I tried to take a look at the log but wasn't even sure what program to open them with to read it.

agross commented 3 years ago

@BrianAMartin221 cat, less and tail will do. You can leave tail -f <file> running in a terminal and it'll update as soon as the file is written to.

BrianAMartin221 commented 3 years ago

@BrianAMartin221 cat, less and tail will do. You can leave tail -f <file> running in a terminal and it'll update as soon as the file is written to.

I haven't run commands like that before in terminal, I'll look into it today thanks!