Skip to content
Snippets Groups Projects
Commit 35e32f35 authored by Jack Nagel's avatar Jack Nagel
Browse files

factory: don't reload previously defined formulae


build.rb calls Formula.factory to get a usable Formula object to pass to
its install method. However, because the formula file is the actual
executing script, its class is already defined, and loading it again
causes the class to be re-evaluated, which, unfortunately, is not
idempotent.

This bug has existed for a very long time, and its side effects include
duplicate entries the deps array and mirrors array, among others.
Fortunately, the fix is very simple.

Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent c6b3cd7c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment