livecheck: raise error if no watchlist#10054
Conversation
91b9753 to
3bbb4ba
Compare
|
This issue was introduced in #8578 (adding cask support). Before that point, when a user ran I pushed a commit that reinstates this behavior by using the safe navigation operator before That said, the question is whether the existing Maybe we could split the difference and make the watchlist |
3bbb4ba to
7677013
Compare
nandahkrishna
left a comment
There was a problem hiding this comment.
A watchlist file is required when no arguments are given.
I prefer this because it's possible that the user would miss the information present in the usage banner, and No formulae to check doesn't seem specific enough.
samford
left a comment
There was a problem hiding this comment.
I agree that there's value in having a better error than No formulae or casks to check. in this context. I imagine we're in agreement on this point, so it's just a matter of figuring out the best error message.
I think the suggestion below is a happy medium and users can simply refer to the usage banner if they're not familiar with watchlists.
f46bb67 to
c7080ba
Compare
|
I'm going to go ahead and merge this since it's fixing a bug. Thanks, @hyuraku! |
brew stylewith your changes locally?brew typecheckwith your changes locally?brew testswith your changes locally?brew manlocally and committed any changes?closes #10052
raise an error when
brew livecheckhas no args and set noENV['HOMEBREW_LIVECHECK_WATCHLIST']or~/.brew_livecheck_watchlist