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

Use Formula#oldnames to silence deprecation notices #1225

Merged

Conversation

colindean
Copy link
Member

@colindean colindean commented Jul 8, 2023

This doesn't really fully safely use Formula#oldnames, just
effectively uses what Formula#oldname does now.

https://github.com/Homebrew/brew/blob/4bbc0af6935816c75e0057364a84fd7fa8de071b/Library/Homebrew/formula.rb#L502-L515

Fixes #1223

This doesn't really fully safely use `Formula#oldnames`, just
effectively uses what `Formula#oldname` does now.

https://github.com/Homebrew/brew/blob/4bbc0af6935816c75e0057364a84fd7fa8de071b/Library/Homebrew/formula.rb#L502-L515
@colindean
Copy link
Member Author

Test failure looks like a temporary failure to retrieve the latest https://formulae.brew.sh/api/cask.jws.json.

spec/bundle/brew_dumper_spec.rb Show resolved Hide resolved
spec/bundle/brew_dumper_spec.rb Show resolved Hide resolved
spec/bundle/brew_dumper_spec.rb Show resolved Hide resolved
@jacobbednarz jacobbednarz merged commit 5264d22 into Homebrew:master Jul 10, 2023
4 checks passed
@MikeMcQuaid
Copy link
Member

Thanks for workaround here @colindean and for merging @jacobbednarz!

MikeMcQuaid added a commit that referenced this pull request Jul 18, 2023
Follow up from #1225 that handles multiple oldnames.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bundle dump spams warning messages to console regarding a deprecated function call
4 participants