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 autoupdate runs on brew install --help #1188

Closed
skycaptain opened this issue Sep 29, 2016 · 2 comments · Fixed by #1190
Closed

brew autoupdate runs on brew install --help #1188

skycaptain opened this issue Sep 29, 2016 · 2 comments · Fixed by #1190
Assignees
Labels
bug Reproducible Homebrew/brew bug

Comments

@skycaptain
Copy link

skycaptain commented Sep 29, 2016

TL;DR: brew install --help calls autoupdate

And now to the long story. I was surprised by the update of readline 7; i.e. it crashed other packages I'm using on a daily basis. Therefore, the easiest way seamed to revert to an older commit and pin readline. Searching for the command on how to disable the autoupdate triggered by brew install (Since this would checkout the master again) I called brew install --help. Sadly this command also triggered the autoupdate.
I know that this is a rare scenario and this behavior may also be by design but for me this is inconvenient.

@zmwangx zmwangx added the bug Reproducible Homebrew/brew bug label Sep 29, 2016
@zmwangx
Copy link
Contributor

zmwangx commented Sep 29, 2016

brew install --help triggering autoupdate should be considered a bug IMO. Sorry for the inconvenience.

FYI to disable autoupdate you set the HOMEBREW_NO_AUTO_UPDATE environment variable.

Also, if you haven't cleaned up your old readline yet, you can

brew switch readline 6.3.8

but you'll also need to switch whatever that has been upgraded and linked to readline 7.

@skycaptain
Copy link
Author

skycaptain commented Sep 29, 2016

Already solved the issues regarding readline using HOMEBREW_NO_AUTO_UPDATE. Was difficult though, since brew install doesn't allow pinned formulas. But installing readline 6 and 7 side by side and using brew switch finally solved everything. Anyway, thanks for your help.

@ghost ghost assigned vladshablinsky Sep 29, 2016
@ghost ghost added the in progress Maintainers are working on this label Sep 29, 2016
@ghost ghost assigned MikeMcQuaid Oct 3, 2016
@ghost ghost removed the in progress Maintainers are working on this label Oct 3, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants