Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew install gettext, triggers brew cleanup (30 days), as a result gettext is removed #7356

Closed
1 of 3 tasks
joachimmetz opened this issue Apr 14, 2020 · 4 comments
Closed
1 of 3 tasks
Labels
outdated PR was locked due to age

Comments

@joachimmetz
Copy link

joachimmetz commented Apr 14, 2020

brew install gettext, triggers brew cleanup (30 days), as a result gettext is removed.

  • ran brew update and can still reproduce the problem?
    • brew update is run before brew install gettext gnu-sed
  • ran brew doctor, fixed all issues and can still reproduce the problem?
    • I did not run brew doctor since instance is short lived
  • ran brew config and brew doctor and included their output with your issue?
    • I did not run brew config and brew doctor since instance is short lived

Not an urgent issue, I'll run export HOMEBREW_NO_INSTALL_CLEANUP=1; before using brew install for now.

What you were trying to do (and why)

I ran into this issue on Travis-CI MacOS instance

brew install gettext gnu-sed
...
Error: gettext 0.19.8.1 is already installed
To upgrade to 0.20.1, run `brew upgrade gettext`
...
==> `brew cleanup` has not been run in 30 days, running now...
...
Removing: /Users/travis/Library/Caches/Homebrew/gettext-0.19.8.1.sierra.bottle.tar.gz... (7.8MB)

What happened (include command output)

https://travis-ci.com/github/libyal/libmodi/jobs/319194232#L7764

What you expected to happen

Gettext not to be removed by brew cleanup

Step-by-step reproduction instructions (by running brew commands)

See: What you were trying to do (and why)

Output of brew config and brew doctor commands

N/A

@scpeters
Copy link
Member

The following line in the console output:

Removing: /Users/travis/Library/Caches/Homebrew/gettext-0.19.8.1.sierra.bottle.tar.gz... (7.8MB)

is not saying that the package was uninstalled; rather it says that the cached bottle tarball is being removed as it is out of date. When you brew upgrade gettext, it will download version 0.20.1; there's no reason to keep the old 0.19.8.1 bottle.

Is there a way we could improve this console message to clarify what is happening?

@MikeMcQuaid
Copy link
Member

Is there a way we could improve this console message to clarify what is happening?

I'm open to PRs doing that!

@joachimmetz
Copy link
Author

joachimmetz commented Apr 15, 2020

@scpeters thx for the clarification, I don't use brew that much. So terms like bottle and their paths are not familiar.

Maybe change the output to something like:

[INFO] purging obsolete cache file: ...

@MikeMcQuaid
Copy link
Member

Looks like a potential duplicate of #7320

@lock lock bot added the outdated PR was locked due to age label May 20, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

3 participants