audit: deprecate sha1 always.
Rather than just when --strict is set. We're asking people to do these on most PRs now anyway so feels better to let them find this out with `brew audit`. Closes Homebrew/homebrew#41523. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
e949a5fd46
commit
4f74e891aa
@ -947,12 +947,8 @@ class ResourceAuditor
|
||||
problem "MD5 checksums are deprecated, please use SHA256"
|
||||
return
|
||||
when :sha1
|
||||
if ARGV.include? "--strict"
|
||||
problem "SHA1 checksums are deprecated, please use SHA256"
|
||||
return
|
||||
else
|
||||
len = 40
|
||||
end
|
||||
problem "SHA1 checksums are deprecated, please use SHA256"
|
||||
return
|
||||
when :sha256 then len = 64
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user