aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mcpp.rb
diff options
context:
space:
mode:
authorJack Nagel2013-10-22 13:07:08 -0500
committerJack Nagel2013-10-22 13:31:08 -0500
commitfcf616c380d749d6fc40212626c6d9abfa46ce49 (patch)
treee473f69df16b83f8dd4a318faceaccdb9092b339 /Library/Formula/mcpp.rb
parentabad65940d22a759261a9285424706cdc38c1275 (diff)
downloadhomebrew-fcf616c380d749d6fc40212626c6d9abfa46ce49.tar.bz2
Eagerly initialize formula specs
Declarations of dependencies, options, and resources in the DSL only apply to specs that have already been initialized. For example, given this snippet: url ... sha1 ... depends_on 'foo' devel do url ... sha1 ... end The dependency 'foo' will be recorded for the stable spec, but not the devel spec, since it was not initialized prior to the call to depends_on. While it is considered best practice to declare all specs (stable, devel, head, and bottle) prior to other declarations, there is nothing that enforces this ordering, so when it happens it can be confusing and hard to debug. To prevent this, we can initialize all specs up front. This comes with a performance penalty for commands that load all formulae into memory, but that is probably outweighed by what we gain in correctness. Fixes #23425.
Diffstat (limited to 'Library/Formula/mcpp.rb')
0 files changed, 0 insertions, 0 deletions