Merge pull request #17043 from Homebrew/bump_cask_pr_content_loader
dev-cmd/bump-cask-pr: use FromContentLoader when relevant.
This commit is contained in:
commit
0e9b2e3da1
@ -215,7 +215,8 @@ module Homebrew
|
|||||||
read_only_run: true,
|
read_only_run: true,
|
||||||
silent: true)
|
silent: true)
|
||||||
|
|
||||||
tmp_cask = Cask::CaskLoader.load(tmp_contents)
|
tmp_cask = Cask::CaskLoader::FromContentLoader.new(tmp_contents)
|
||||||
|
.load(config: nil)
|
||||||
old_hash = tmp_cask.sha256
|
old_hash = tmp_cask.sha256
|
||||||
if tmp_cask.version.latest? || new_hash == :no_check
|
if tmp_cask.version.latest? || new_hash == :no_check
|
||||||
opoo "Ignoring specified `--sha256=` argument." if new_hash.is_a?(String)
|
opoo "Ignoring specified `--sha256=` argument." if new_hash.is_a?(String)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user