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

upgrade: skip formula if upgrade fails due to unsatisfied requirement. #3644

Merged
merged 1 commit into from
Jan 8, 2018
Merged

upgrade: skip formula if upgrade fails due to unsatisfied requirement. #3644

merged 1 commit into from
Jan 8, 2018

Conversation

MikeMcQuaid
Copy link
Member

Rather than blocking the rest of the formulae from being installed by brew upgrade print the requirement failure messages (already done) and an error stating requirements weren't satisfied and then continue to upgrade the rest of the formulae.

Rather than blocking the rest of the formulae from being installed by
`brew upgrade` print the requirement failure messages (already done) and
an error stating requirements weren't satisfied and then continue to
upgrade the rest of the formulae.
@MikeMcQuaid MikeMcQuaid changed the title upgrade: skip formula if upgrade fails. upgrade: skip formula if upgrade fails due to unsatisfied requirement. Jan 8, 2018
@ilovezfs ilovezfs merged commit 987805d into Homebrew:master Jan 8, 2018
@MikeMcQuaid MikeMcQuaid deleted the upgrade-skip-failed-reqs branch January 8, 2018 16:24
@zmwangx
Copy link
Contributor

zmwangx commented Jan 8, 2018

Slight nitpick here: the exit status is zero despite the error.

@MikeMcQuaid
Copy link
Member Author

@zmwangx Oops, thanks, fixed in 9ed1ed3.

@ylluminarious
Copy link

This is a great improvement on the original behavior, although IMO it is also desirable that the exit status is non-erring. That way a one-liner such as brew upgrade && brew cleanup will not fail halfway through.

@alyssais
Copy link
Contributor

@ylluminarious the error status in this case will continue to report an error, because an error occurred and the command was not able to successfully complete its task. If you want to cleanup even if an error occurred while upgrading, you can just do brew upgrade; brew cleanup.

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants