brew icon indicating copy to clipboard operation
brew copied to clipboard

cmd/info: avoid waiting indefinitely for analytics unless requested

Open carlocab opened this issue 1 year ago • 8 comments

  • [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 style with your changes locally?
  • [ ] Have you successfully run brew typecheck with your changes locally?
  • [ ] Have you successfully run brew tests with 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.

carlocab avatar Aug 04 '24 01:08 carlocab