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

Always load net/https before referencing related constants

I put this require inside the method body, because eager-loading
net/https is slow compared to the rest of Homebrew, and utils.rb is
loaded for each `brew` invocation.

It's probably worth breaking up global.rb a bit, to reduce the amount of
code we are loading unnecessarily, but hopefully also to make inter-file
dependencies a bit more obvious.

Fixes Homebrew/homebrew#21617.
parent faf0a720
No related branches found
No related tags found
Loading
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