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

Include loaded_from_api key in Tab #13842

Merged
merged 1 commit into from Sep 15, 2022
Merged

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Sep 11, 2022

This PR adds a loaded_from_api item to a formula's Tab. Whether the formula was loaded from the API or not is determined by checking the formula namespace to see if it starts with FormulaNamespaceAPI which would only be the case when loading from the API. This change will allow us to check whether formulae were installed from the API or not which could be helpful for debugging or other things like that.

I'd also like to note this for casks somehow too, but I'm not totally sure what the best way to do that is. Maybe put it in config.json somehow?

@BrewTestBot
Copy link
Member

Review period will end on 2022-09-13 at 00:00:00 UTC.

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

BrewTestBot commented Sep 12, 2022

Review period ended.

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.

Good idea! Some thoughts.

Library/Homebrew/tab.rb Outdated Show resolved Hide resolved
Library/Homebrew/formula_installer.rb Outdated Show resolved Hide resolved
@MikeMcQuaid
Copy link
Member

Perfect, thanks again @Rylan12!

@MikeMcQuaid MikeMcQuaid merged commit 6eaa510 into Homebrew:master Sep 15, 2022
@Rylan12 Rylan12 deleted the api-in-tab branch September 15, 2022 09:49
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 16, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 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

4 participants