-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement --require-sha
flag
#18831
Comments
Steps for implementation:
@jawshooah Seem okay? |
The man page will also need to be updated. Other than that, I believe that should be sufficient. |
Please don’t “+1” this issue (or any other, for that matter), as it only adds noise. We want this implemented, it’s not a vote. Will remove comments that don’t add to the discussion, to keep the issue focused. |
Could we change it to a slight but important difference: |
@fuzzyroddis What’s the difference? |
It's a nitpick, but in the original if a cask does not contain any |
There’s no such thing as a cask without a |
I understand that an audit would catch such a cask, but it's still possible for a cask to exist without a |
Unless I’m misremembering, a cask that does not pass audit will also refuse to install. |
Wouldn't it be safer to require a |
We only do that for casks that have unversioned Please search our issues and documentation for further questions on this. Everything has already been explained at length multiple times. |
Perhaps you misunderstand me, I'm not talking about the use of
This isn't an issue of what :no_check does nor how audit works, its about ensuring the behaviour of Sure it might double up, that audit checks for a hash and then |
Again, there are no casks with no Try it. Make a cask with no |
Refs #10380.
When using
--require-sha
on the command line (orHOMEBREW_CASK_OPTS
) during aninstall
, before starting the download HBC must check if the cask in question usessha256 :no_check
. If it does, installation will abort for that specific cask and an explanatory message be given.Steps for implementation (from the next post):
--require-sha
totest/cask/cli/options_test.rb
--require-sha
tolib/hbc/cli.rb
Hbc::CaskNoShasumError
tolib/hbc/exceptions.rb
sha256 :no_check
inlib/hbc/cli/install.rb
, and abort if--require-sha
is presentThe text was updated successfully, but these errors were encountered: