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

Restrict version of dry-schema for ruby 3.1.2 compatibility #5483

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

gravitystorm
Copy link
Collaborator

https://bugs.ruby-lang.org/issues/18673 affects some methods using anonymous blocks, and was fixed in ruby 3.1.3. However, debian/bookworm ruby 3.1 package is based on 3.1.2 and does not yet contain this fix.

Since bookworm is used in our Docker build, and also used in production by OSMF, then we can restrict dry-schema to a version that does not use anonymous blocks.

Fixes #5482

Copy link
Contributor

@nenad-vujicic nenad-vujicic left a comment

Choose a reason for hiding this comment

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

This works great on my side! Thanks!

@tomhughes
Copy link
Member

Much as it pains me I guess we have to take this.

@tomhughes
Copy link
Member

tomhughes commented Jan 8, 2025

Why has this downgraded us all the way to 1.13.0 when we were on 1.13.4 before I updated yesterday?

https://bugs.ruby-lang.org/issues/18673 affects some methods using
anonymous blocks, and was fixed in ruby 3.1.3. However, debian/bookworm
ruby 3.1 package is based on 3.1.2 and does not yet contain this fix.

Since bookworm is used in our Docker build, and also used in production
by OSMF, then we can restrict dry-schema to a version that does not
use anonymous blocks.

Fixes openstreetmap#5482
@gravitystorm
Copy link
Collaborator Author

Why has this downgraded us all the way to 1.13.0 when we were on 1.13.4 before I updated yesterday?

Sorry, that's my mistake, related to the order I was testing things locally. I've pushed an updated version.

@tomhughes tomhughes merged commit 2c1428c into openstreetmap:master Jan 8, 2025
14 of 15 checks passed
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.

dry-schema update exposes bug in debian/bookworm version of ruby 3.1
3 participants