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

Don't show a deprecation warning for EnsureNode#branch just yet #339

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

Earlopain
Copy link
Contributor

There currently is no RuboCop version that will not show this warning.
Somehow this did not cross my mind while looking at the other PR...

This can be reverted after RuboCop and its extensions are updated and released to use the non-deprecated method.

There currently is no RuboCop version that will not show this warning.
@dvandersluis
Copy link
Member

Shoot, you're right. I was thinking that rubocop wouldn't be affected until rubocop-ast was updated manually, but we're not actually pinning a version of rubocop-ast, so anyone who installs rubocop fresh or updates it will get a noisy version of rubocop-ast. 🤦

@marcandre sorry I missed this too. Perhaps 1.36 should be yanked and this should be released as 1.36.1?

@koic
Copy link
Member

koic commented Nov 13, 2024

Yanking should be avoided as much as possible because it can cause unexpected installation error for users who are already using the version. In other words, instead of yanking 1.36, it would be better to simply release 1.36.1.

@marcandre marcandre merged commit 3a7c069 into rubocop:master Nov 13, 2024
20 checks passed
@marcandre
Copy link
Contributor

Right, clearly I lack experience in deprecating.
First soft deprecate, then update dependencies, then deprecate, then change...

@dvandersluis
Copy link
Member

Me too @marcandre. Thanks for your quick attention to this, and thanks @Earlopain for noticing!

@Earlopain
Copy link
Contributor Author

Doesn't happen to often. I would suggest giving 1 or 2 months after release with fixes to rubocop and similar to give people the chance to upgrade.

They might restrict rubocop in their gemfile but I don't think the same is common for rubocop-ast. Especially people on standard won't be able to do much about it as I've recently learned for unrelated reasons.

@Earlopain Earlopain deleted the no-warn branch November 14, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants