Merge pull request #16053 from Bo98/betterer-readall

readall: check hash generation works
This commit is contained in:
Mike McQuaid 2023-09-28 15:21:11 +01:00 committed by GitHub
commit d73e1fc413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@ module Readall
readall_formula_class = Formulary.load_formula(formula_name, file, formula_contents, readall_namespace,
flags: [], ignore_errors: false)
readall_formula = readall_formula_class.new(formula_name, file, :stable, tap: tap)
readall_formula.to_hash
cache[:valid_formulae][file] = if readall_formula.on_system_blocks_exist?
[bottle_tag, *cache[:valid_formulae][file]]
else