-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
disable!, deprecate!: add reason #8512
disable!, deprecate!: add reason #8512
Conversation
I'd also consider adding a commented-out |
Can I suggest adding a |
Good idea. Just to clarify, does that mean that we'll uncomment the line (deprecating it) when 2.5 is released and then remove the line for 2.6?
Definitely like this idea. Not sure if CI can do it automatically (I'd be diving into some new territory there). If it can't, I could see this being a pain point because you don't easily know what PR number you'll get until you make it. An alternative might be to query for PRs with the name |
Yup!
CI can't do it automatically really and this would be a bit awkward to have to create a PR and then force push to it. It's also inviting people to jump on the PR and complain which I'm not sure is a good idea. |
I think the CI injection part can be skipped for now, since deprecation/disabling is rare enough that a quick edit/force-push shouldn't be too burdensome. |
I'd rather not put this onus on maintainers for something which I don't see as adding to the communication and gives people a bandwagon to be negative on. |
Yeah, I agree. Plus, people can still find the PRs without too much trouble if they know where to look... |
Thanks again @Rylan12! |
@Rylan12 I've tagged 2.4.14 now and uncommented the deprecations in #8513 which (as expected) is causing a CI failure. If you could add these reasons en-masse to homebrew-core I can handle linuxbrew-core and the other taps. Cheers again, great work! ❤️ |
@MikeMcQuaid I've opened a PR for the Looking at the Edit: there are more exceptions to this than I thought, so I think it's okay to keep the requirement. I'll open the PR and it can be discussed there |
Could provide symbols like with |
brew style
with your changes locally?brew tests
with your changes locally?Resolves #8501
Add a reason for disabling and deprecating a formula. This means that the error that a user gets when trying to install one of these has more information and makes it easier to figure out what the problem is.
Example:
Right now, the
because:
parameter is optional. I plan on making it required bybrew style
, but I think we need to wait for the next release so that Homebrew/core formulae can accept the reason.