Skip to content
Snippets Groups Projects
Unverified Commit dbbf8243 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formulary: strengthen commit URL warning.

parent c88d07eb
No related branches found
No related tags found
No related merge requests found
......@@ -205,10 +205,11 @@ module Formulary
def load_file
if url =~ %r{githubusercontent.com/[\w-]+/[\w-]+/[a-f0-9]{40}(/Formula)?/([\w+-.@]+).rb}
formula_name = Regexp.last_match(2)
ohai "Consider using `brew extract #{formula_name} ...`!"
puts <<~EOS
opoo <<~EOS
Unsupported installation from an commit URL!
Consider using `brew extract #{formula_name} ...` instead!"
This will extract your desired #{formula_name} version to a stable tap instead of
installing from an unstable URL!
installing from a commit URL that cannnot receive updates or fixes!
EOS
end
......
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