Merge pull request #15971 from maschwenk/mfs-try-to-fix-upstream-issue

Reset requirement cache (again) after `recursive_dependencies.map(&:to_formula)` invalidates singleton cache
This commit is contained in:
Mike McQuaid 2023-09-08 00:58:08 -04:00 committed by GitHub
commit 704b97d36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,13 @@ class Requirement
end
end
cache[cache_key][cache_id dependent] = reqs.dup if cache_key.present?
if cache_key.present?
# Even though we setup the cache above
# 'dependent.recursive_dependencies.map(&:to_formula)'
# is invalidating the singleton cache
cache[cache_key] ||= {}
cache[cache_key][cache_id dependent] = reqs.dup
end
reqs
end