readall: check hash generation works

This commit is contained in:
Bo Anderson 2023-09-28 14:08:23 +01:00
parent 6b01bc1773
commit 9bd8087982
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

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