cask_loader: fix missing checksum in FromContentsLoader

This commit is contained in:
Bo Anderson 2023-02-24 12:09:34 +00:00
parent 2d31f80f5c
commit 09eb7b3dcb
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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