Giter Club home page Giter Club logo

Comments (8)

MikeMcQuaid avatar MikeMcQuaid commented on June 24, 2024 1

If I read the code right, there is no way to silence just this warning without disabling the behavior. So that would be a feature request.

There is: set HOMEBREW_NO_ENV_HINTS, as the message says.

Passing on this, sorry.

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on June 24, 2024

Can you provide an example of the specific hints you're seeing that you don't want to?

from brew.

kallookoo avatar kallookoo commented on June 24, 2024

Hi @MikeMcQuaid

Sorry, but after checking it I have seen that in the brew.env file I misspelled the variable and after correcting it it is already hidden.

from brew.

skagedal avatar skagedal commented on June 24, 2024

I have HOMEBREW_AUTO_UPDATE_SECS set explicitly to 86400 (in my ~/.zshrc).

❯ echo $HOMEBREW_AUTO_UPDATE_SECS
86400

I was hoping that this would hide the specific hint about auto updates, while still providing me with other env hints that I might find useful. However, I still get the hint: (EDIT: nope, user error, see below)

==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

I also got this hint:

==> Running `brew cleanup coreutils`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

In this case, there seems to be no explicit configuration to set get the install cleanups, but that could be used to silence the hints.

❯ brew --version       
Homebrew 4.2.15

from brew.

skagedal avatar skagedal commented on June 24, 2024

Hmm, but I do see now here that the HOMEBREW_AUTO_UPDATE_SECS hint should be hidden if explicitly set... so this might be an user error on my side as well, not sure how but looking at it :)

from brew.

skagedal avatar skagedal commented on June 24, 2024

Oh yes, the env var was not exported 🤦 – sorry about that. But how about the HOMEBREW_NO_INSTALL_CLEANUP case?

If I read the code right, there is no way to silence just this warning without disabling the behavior. So that would be a feature request.

from brew.

skagedal avatar skagedal commented on June 24, 2024

No, that also disables other hints? But I of course realize that this is a rather specific ask and I perfectly understand that you would pass on it. :)

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on June 24, 2024

No, that also disables other hints?

Yes. We don't have hint-by-hint disabling, sorry.

from brew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.