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

Improve brew update with HOMEBREW_INSTALL_FROM_API #13795

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Sep 2, 2022

This PR modifies some brew update related logic to work better with HOMEBREW_INSTALL_FROM_API. Currently, if you have HOMEBREW_INSTALL_FROM_API set, brew update will never update the core and cask taps. We want this to remain, but also want a way for developers to continue maintaining homebrew/core and homebrew/cask. So, this PR modifies brew update so that it does update the core and cask taps when someone with HOMEBREW_DEVELOPER set runs brew update. As before. brew update --auto-update will not update the core and cask taps.

Additionally, I updated the call in brew update that updates the cached formula JSON file so that it uses --time-cond like we do in Homebrew::API::Formula.all_formulae to avoid unnecessary downloading when the file hasn't changed.

Finally, I made a small change to Homebrew::API::Formula.all_formulae to remove a duplicated file path.

@BrewTestBot
Copy link
Member

Review period will end on 2022-09-05 at 06:20:23 UTC.

@BrewTestBot BrewTestBot added the waiting for feedback Merging is blocked until sufficient time has passed for review label Sep 2, 2022
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Rylan12!

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Sep 2, 2022
@BrewTestBot BrewTestBot removed the waiting for feedback Merging is blocked until sufficient time has passed for review label Sep 2, 2022
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@MikeMcQuaid MikeMcQuaid merged commit e689cc0 into Homebrew:master Sep 2, 2022
@Rylan12 Rylan12 deleted the api-update-improvements branch September 2, 2022 18:31
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants