diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4c0634d06..26b25cbf7 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -52,7 +52,9 @@ class Formula set_instance_variable 'version' # Otherwise detect the version from the URL @version ||= @spec_to_use.detect_version - validate_variable :version + # Only validate if a version was set; GitHubGistFormula needs to get + # the URL to determine the version + validate_variable :version if @version CHECKSUM_TYPES.each { |type| set_instance_variable type } |
