Check for valid url, sha256 and version when loading casks #15976
Labels
cask
Homebrew Cask
discussion
Input solicited from others
features
New features
outdated
PR was locked due to age
stale
No recent activity
Verification
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.Provide a detailed description of the proposed feature
When we load a cask from a file or the API, we don't check if it has basic attributes necessary to install it on a system. This means that we can see some obscure error messages when those attributes are not defined. On the formula side, we check for those things every time we load anything for the first time. We should do the same thing for casks.
What is the motivation for the feature?
It would improve consistency and give users and package maintainers more helpful error messages.
How will the feature be relevant to at least 90% of Homebrew users?
Getting better error messages and not trying to load cask files that have errors will improve the experience for all users indirectly by helping us troubleshoot problems faster.
What alternatives to the feature have been considered?
Adding more checks around the codebase or leaving things as is.
The text was updated successfully, but these errors were encountered: