-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Deprecate, disable & delete code for Homebrew 4.2.0 #16306
Conversation
def plist_options(options) | ||
odisabled "plist_options", "service.require_root" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the number of errors in audit CI here: it seems this deprecation didn't work and we will probably have to restart the process and figure out why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right it did work, just not for every formula because of:
brew/Library/Homebrew/extend/kernel.rb
Line 129 in c32bd1c
formula_contents.include?(" deprecate! ") || formula_contents.include?(" disable! ") |
Which doesn't really work with things that are future-deprecated like the PHP versioned formulae.
Given we have to deal with things when they get removed anyway, and the deprecation cycle of formulae is significantly longer than brew's, this check is probably not as useful as it seems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled the remaining formulae in Homebrew/homebrew-core#156780.
740cae5
to
b42256d
Compare
# odeprecated "Language::Python::Virtualenv.virtualenv_create's without_pip" unless without_pip | ||
# Limit deprecation to 3.12+ for now (or if we can't determine the version). | ||
# Some used this argument for setuptools, which we no longer bundle since 3.12. | ||
unless without_pip | ||
python_version = Language::Python.major_minor_version(python) | ||
if python_version.nil? || python_version.null? || python_version >= "3.12" | ||
raise ArgumentError, "virtualenv_create's without_pip is deprecated starting with Python 3.12" | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is perhaps unusual but it's either this or don't deprecate at all I reckon. GitHub search shows 134 usages in third-party taps (and once in homebrew-core).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. All makes sense to me so far and happy to merge whenever 💚!
`--new-formula` was deprecated in Homebrew/brew#16306
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306. Co-authored-by: Bo Anderson <[email protected]>
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306. Co-authored-by: Bo Anderson <[email protected]>
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
Needed after Homebrew/brew#16306.
#16294 (comment)