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

v0.15.1 seems to be incompatible with Sinatra v3 #2258

Closed
fallwith opened this issue Sep 26, 2022 · 5 comments
Closed

v0.15.1 seems to be incompatible with Sinatra v3 #2258

fallwith opened this issue Sep 26, 2022 · 5 comments

Comments

@fallwith
Copy link

fallwith commented Sep 26, 2022

Do you want to request a feature or report a bug?

bug

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce it and if possible a minimal demo of the problem via https://github.com/ or https://gist.github.com/

The simple bundling of gem 'padrino' in a fresh Gemfile with no other gem entries will fail.
This appears to be because padrino depends on padrino-core, which in turn depends on sinatra >= 2.0.0, which is currently being resolved to Sinatra v3.0.0. Padrino appears to not yet be compatible with Sinatra v3, owing to Padrino's attempts to concatenate onto CALLERS_TO_IGNORE, which is now frozen.

What is the expected behavior?

Padrino can be bundled successfully.

Ideally, the compatibility issue with Sinatra v3 can be worked out without too much trouble. In the meantime, I think updating padrino-core's dependency on Sinatra to specify >= 2.0.0, < 3.0.0* would be wise.

Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?

Ruby 3.1.2, Padrino "latest" (0.15.1 was fetched), Sinatra specified by padrino-core (3.0.0 was fetched), Rack 2.2.4, macOS and Ubuntu 22.

@nesquena
Copy link
Member

Thanks for reporting. I would +1 this and would be happy to review and merge any attempt to bring Padrino up to support Sinatra 3 either in a backwards compatible way or if not then via a major version bump.

As is - Padrino is only compatible with Sinatra 1 or 2

@wakatara
Copy link

wakatara commented Nov 2, 2022

Update on this? I've got an app from 4 years ago I built on padrino and the heroku changes mean I really need to upgrade the puppy to a more up to date stack (I quite hearted padrino).

Is the advice for "modernizing" an older app to lock Sinatra to 2.0 and then gem update everything? Such as was quoted above with the "dependency on Sinatra to specify >= 2.0.0, < 3.0.0" would be wise."

@nesquena
Copy link
Member

nesquena commented Nov 5, 2022

Yes I believe right now you'll need to lock Sinatra to < 3 in order for Padrino to continue to function.

If anyone is able to look into the change set for upgrading to 3.0, I'd be more then happy to review and merge and release a major version for compatibility

@wakatara
Copy link

wakatara commented Nov 6, 2022 via email

@jkowens
Copy link
Collaborator

jkowens commented Dec 17, 2022

This has been resolved by #2259. It will just require a new release.

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

No branches or pull requests

4 participants