DEV Community

Cover image for Getting around Brew's "Error: Calling Non-checksummed download of..."
Justin
Justin

Posted on

Getting around Brew's "Error: Calling Non-checksummed download of..."

I ran into this error while trying to install curl w/ http3 support:

brew install --HEAD -s https://raw.githubusercontent.com/cloudflare/homebrew-cloudflare/master/curl.rb

Error: Calling Non-checksummed download of curl formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.
Enter fullscreen mode Exit fullscreen mode

The suggested fixes, brew extract, brew create, or brew tap-new are totally foreign to me and I wasn't sure where to begin. Googling it lead me down a path of more brew related terminology I had never heard of before.

Easiest way to bypass it?

wget [the-url]
Enter fullscreen mode Exit fullscreen mode

Then

brew install --HEAD -s [the-script]
Enter fullscreen mode Exit fullscreen mode

So from my example above:

# Instead of
brew install --HEAD -s https://raw.githubusercontent.com/cloudflare/homebrew-cloudflare/master/curl.rb

# Do
wget https://raw.githubusercontent.com/cloudflare/homebrew-cloudflare/master/curl.rb

brew install --HEAD -s curl.rb
Enter fullscreen mode Exit fullscreen mode

Of course make sure you only do this for trusted sources!

Happy hacking!

Top comments (3)

Collapse
 
gwynethllewelyn profile image
Gwyneth Llewelyn • Edited

... and why, oh why, did I only read this now?

I could have saved countless hours sigh ... Like you, I'm no brew expert, so I felt a bit blind, walking into the abyss... eventually, after oh so many hours, I did manage to get this to work, but with a way more convoluted procedure...

Anyway, thanks so much 🙏 — I'm referring your post here to the Cloudflare devs, so that they properly update things on their instructions...

Collapse
 
_suidobashi profile image
水道橋で夜更かし

Thank you so much, I just started to study Linux and using brew. It was helpful to proceed.

Collapse
 
tresf profile image
Tres Finocchiaro

Thanks!! You should consider changing the example from wget to curl. macOS doesn't ship with wget.