Merge pull request #14792 from Bo98/cask-contents-checksum

cask_loader: fix missing checksum in FromContentsLoader
This commit is contained in:
Mike McQuaid 2023-02-24 12:55:11 +00:00 committed by GitHub
commit aeda0c473f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,10 @@ module Cask
private
def cask(header_token, **options, &block)
Cask.new(header_token, source: content, **options, config: @config, &block)
checksum = {
"sha256" => Digest::SHA256.hexdigest(content),
}
Cask.new(header_token, source: content, source_checksum: checksum, **options, config: @config, &block)
end
end