-
Notifications
You must be signed in to change notification settings - Fork 988
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
Fixes #30712 - pin shoulda_matcher < 4.4 #7926
Conversation
Issues: #30712 |
bundler.d/test.rb
Outdated
@@ -18,7 +18,7 @@ | |||
gem 'rubocop-rails', '~> 2.4.2' | |||
gem 'poltergeist', '>= 1.18.0', :require => false | |||
gem 'selenium-webdriver', :require => false | |||
gem 'shoulda-matchers', '~> 4.0' | |||
gem 'shoulda-matchers', '~> 4.0', '< 4.4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script that converts this to RPM deps creates something ugly from this. It creates < 5.0
and < 4.4
.
gem 'shoulda-matchers', '~> 4.0', '< 4.4' | |
gem 'shoulda-matchers', '>= 4.0', '< 4.4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't think we created rpms for test gems, but no reason to not doing it the better way for copy/paste reasons :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, we indeed skip it for test gems so it probably wouldn't have mattered.
@@ -18,7 +18,7 @@ | |||
gem 'rubocop-rails', '~> 2.4.2' | |||
gem 'poltergeist', '>= 1.18.0', :require => false | |||
gem 'selenium-webdriver', :require => false | |||
gem 'shoulda-matchers', '~> 4.0' | |||
gem 'shoulda-matchers', '>= 4.0', '< 4.4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it reasonable to expect they are going to fix it in the next release and just exclude the bad release?
gem 'shoulda-matchers', '>= 4.0', '< 4.4' | |
gem 'shoulda-matchers', '~> 4.0', '!= 4.4.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the linked commit, it suggests it started to depend on the Zeitwerk loader. #7843 did start the effort to move Foreman to use it, but that's still a draft.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reading the issue: thoughtbot/shoulda-matchers#1332 its unclear at this point. The change that broke it almost seems like it was intentional, but i don't know that a developer has commented on the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, let's fix tests for now 🤷
@ekohl could you approve please? |
This probably needs chery picks. |
Only for tests to be passing though. |
In the issue they mentioned that 4.4.1 should fix it again. |
see thoughtbot/shoulda-matchers#1332 for details