dry-rb / dry-schema

Coercion and validation for data structures
https://dry-rb.org/gems/dry-schema
MIT License
415 stars 108 forks source link

`v1.11.1` of dry-schema breaks `require "dry-validation"` #434

Closed marian13 closed 1 year ago

marian13 commented 1 year ago

Describe the bug

Screenshot 2022-10-15 at 18 25 33

To Reproduce

Open irb for Ruby 2.7.

irb

Try to require "dry-validation".

require "dry-validation"

"dry-validation" version - v1.8.1.

Expected behavior

As it was in v1.10.0. A successful require.

My environment

marian13 commented 1 year ago

@solnic I see errors with versions upgrades happen relatively often (this is the second and the third time for me in a week 😄 )

Is there a recommended approach to avoid them?

For example, right now I have something like the following in my Gemfile:

gem "dry-validation", "~> 1.5.0"

# Just "dry-validation", its dependencies are not specified in Gemfile. 

Should I prefer to specify versions of "dry-validation" dependencies in it as well?

gem "dry-validation", "~> 1.5.0"

gem "dry-configurable", "~> 0.15.0"

gem "dry-schema", "~> 1.10.0"

gem "dry-core", "~> 0.8.0"

Thanks in advance.

solnic commented 1 year ago

Sorry about that. We're transitioning to zeitwerk for faster gem loading and it's a complex process. Please upgrade to dry-validation 1.9.0 and dry-schema 1.11.1 (or whatever the latest version is, we may release more updates in the upcoming hours/days). If you don't want to upgrade, please just pin whatever version you used before.

marian13 commented 1 year ago

Sorry about that. We're transitioning to zeitwerk for faster gem loading and it's a complex process. Please upgrade to dry-validation 1.9.0 and dry-schema 1.11.1 (or whatever the latest version is, we may release more updates in the upcoming hours/days). If you don't want to upgrade, please just pin whatever version you used before.

Thanks for the reply.