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

Set tap for casks when loading from contents via API #14814

Merged
merged 1 commit into from Feb 26, 2023

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Feb 25, 2023

I noticed that the tap is not set for casks when they are loading via their contents and the API. This means that things like brew info --github --cask vlc don't work as expected (I noticed this when looking at #14797).

I'm not 100% sure this is the right way to handle this, though. Is there a better refactoring of the cask loader stuff that handles tap more universally? CC @Bo98 and @apainintheneck since I think you've touched this recently (and I'm not sure how this affects #14713)

@Rylan12 Rylan12 added the critical Critical change which should be shipped as soon as possible. label Feb 25, 2023
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

Copy link
Member

@Bo98 Bo98 left a comment

Choose a reason for hiding this comment

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

Seems simple enough. Do we want to do the same for formulae?

@Rylan12
Copy link
Member Author

Rylan12 commented Feb 25, 2023

Do we want to do the same for formulae?

I don't think this is needed in the same way. We already include set the tap when loading from the API, and don't do the same from-content loading

@apainintheneck
Copy link
Contributor

I'm fine with this as a stopgap but I think in the long run it's just another example of why we should only load content from the source API during installation. Then we'd be able to skip all of this extra complexity.

I'm working on a PR for that right now but not sure when it will be ready.

Also, don't worry about #14713 because it's on ice right now until the cask loading stuff is handled.

@Rylan12 Rylan12 merged commit 06cf85f into Homebrew:master Feb 26, 2023
@Rylan12 Rylan12 deleted the fix-from-content-tap-loading branch February 26, 2023 21:58
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.

Nice work, thanks @Rylan12!

@github-actions github-actions bot added the outdated PR was locked due to age label Mar 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2023
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

5 participants