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

Update for Rails 8 #1130

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Update for Rails 8 #1130

merged 1 commit into from
Nov 9, 2024

Conversation

Schwad
Copy link
Contributor

@Schwad Schwad commented Oct 21, 2024

Ref: #962

  • Allow runtime railties 8.0.0 dependency.
  • Bump version number to 8.0.0.
  • Update Gemfile.lock.

s.add_dependency('i18n', '>= 0.7', '< 2')
s.add_dependency('railties', '>= 6.0.0', '< 8')
s.add_runtime_dependency('i18n', '>= 0.7', '< 2')
s.add_runtime_dependency('railties', '>= 6.0.0', '< 9')

Choose a reason for hiding this comment

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

Should there be an upper constraint at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so; was trying to introduce the least amount of friction to get this approved.

If maintainers are okay with it I'd love to remove the upper constraint!

Choose a reason for hiding this comment

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

Just remove it. Upper constraints are almost always a bad idea.

Choose a reason for hiding this comment

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

This upper dependency require to do the same dance every few years:

That prevent people from trying Rails release candidates etc. It's just a bad pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link

Choose a reason for hiding this comment

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

Exactly. Unfortunately some maintainers still believe it's safer to restrain the upper limit. which leads me to maintain a lot of forks every year

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for removing this!!!

Copy link
Contributor

@sunny sunny left a comment

Choose a reason for hiding this comment

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

Could you add an entry to the CHANGELOG, too? 🙏🏻

@casperisfine
Copy link

@sunny done.

@pama
Copy link
Collaborator

pama commented Oct 24, 2024

I get the point about upper constraints and understand that it might create difficulties for maintainers looking to update their code to the latest Rails version.

However, I want to ensure that the current release version aligns with the correct Rails I18n keys. I'm hesitant to drop the version constraint because we could run into issues with mismatched keys if we start using versions ahead of our release. It could also set a precedent for having to accept PRs with keys from previous versions, which I've been refusing.

I know we don’t have changes often, but they do happen, like the introduction of zb: one year ago.

@ghiculescu
Copy link
Contributor

I think having a minimum dependency is helpful. Rails 7 requires rails-i18n 7, Rails 8 requires rails-i18n 8, etc. That would solve @pama's issue?

@casperisfine
Copy link

I'm hesitant to drop the version constraint because we could run into issues with mismatched keys if we start using versions ahead of our release.

Well, restricting only the major doesn't make sense then, because Rails from a semver standpoint 7.2 is as much of a major as 8.0, and it just as likely to add a key.

But you are the maintainer, so do what you prefer. If you want to keep the constraints, it's up to you. But either way, can this be solved soon please? Rails 8.0 is in RC1 and this is making it harder for people to test it.

@Schwad
Copy link
Contributor Author

Schwad commented Oct 28, 2024

@pama if I reintroduce a constraint would it be possible to merge this please.

timdiggins added a commit to thredded/thredded that referenced this pull request Nov 5, 2024
timdiggins added a commit to thredded/thredded that referenced this pull request Nov 5, 2024
tagliala added a commit to enriclluelles/route_translator that referenced this pull request Nov 8, 2024
tagliala added a commit to enriclluelles/route_translator that referenced this pull request Nov 8, 2024
tagliala added a commit to enriclluelles/route_translator that referenced this pull request Nov 8, 2024
@4e4c52
Copy link

4e4c52 commented Nov 8, 2024

Hey!

Have you come to a decision for the upper constraint?

Rails 8 is now released and this is blocking the upgrade. 😢

@pama
Copy link
Collaborator

pama commented Nov 8, 2024

I cam merge this without a release and you can point it to the master branch. Will that work for you?

@4e4c52
Copy link

4e4c52 commented Nov 8, 2024

I cam merge this without a release and you can point it to the master branch. Will that work for you?

Sure thing!

@pama
Copy link
Collaborator

pama commented Nov 9, 2024

@Schwad could you reintroduce the constraint and fix the conflicts? I'm sorry for taking so long.

@pama pama merged commit 4460d01 into svenfuchs:master Nov 9, 2024
5 checks passed
@timdiggins timdiggins mentioned this pull request Nov 9, 2024
3 tasks
strzibny pushed a commit to wmlele/devise-otp that referenced this pull request Nov 18, 2024
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.

7 participants