brew
brew copied to clipboard
cmd/info: avoid waiting indefinitely for analytics unless requested
- [x] Have you followed the guidelines in our Contributing document?
- [x] Have you checked to ensure there aren't other open Pull Requests for the same change?
- [x] Have you added an explanation of what your changes do and why you'd like us to include them?
- [ ] Have you written new tests for your changes? Here's an example.
- [x] Have you successfully run
brew stylewith your changes locally? - [ ] Have you successfully run
brew typecheckwith your changes locally? - [ ] Have you successfully run
brew testswith your changes locally?
On a poor connection, e.g., brew info bat can hang indefinitely trying
to fetch analytics data.
Let's bail out early instead unless these analytics were specifically
requested with --analytics.