cask_loader: fix missing checksum in FromContentsLoader
This commit is contained in:
parent
2d31f80f5c
commit
09eb7b3dcb
@ -45,7 +45,10 @@ module Cask
|
|||||||
private
|
private
|
||||||
|
|
||||||
def cask(header_token, **options, &block)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user