-
Notifications
You must be signed in to change notification settings - Fork 896
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
Unlock the pg gem since 1.4.1 was released #21953
Unlock the pg gem since 1.4.1 was released #21953
Conversation
1.4.0 led to ged/ruby-pg#466 and was fixed in ged/ruby-pg#467 Since 1.4.1 is now released and fixes the issue, we can safely unlock pg except for version 1.4.0.
Gemfile
Outdated
# Lock down pg until 1.4.x is released with: | ||
# https://github.com/ged/ruby-pg/pull/467 which fixes https://github.com/ged/ruby-pg/issues/466 | ||
gem "pg", "=1.3.5", :require => false | ||
gem "pg", "!= 1.4.0", :require => false # 1.4.0 caused https://github.com/ged/ruby-pg/issues/466 |
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.
I would prefer
gem "pg", "!= 1.4.0", :require => false # 1.4.0 caused https://github.com/ged/ruby-pg/issues/466 | |
gem "pg", ">= 1.4.1", :require => false |
otherwise the resolver could pick a lower version.
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.
and yes, I see that the original code before the lockdown had it unversioned, but that was wrong IMO...we don't want it to suddenly resolve to 1.3.4, for example, for whatever reason
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.
haha, now you're making me look up the changelog.
Do we want to backport this so other branches never install 1.4.0? It shouldn't happen but they could pull 1.4.1 at any time.
If we want to backport, I would say ">= 1.3", "!= 1.4.0"
is probably best as 1.3.0 drops ruby 2.4 and below. See: https://github.com/ged/ruby-pg/blob/252512608a814de16bbad55911f9bbcef0e73cb9/History.rdoc#v130-2022-01-20-michael-granger-gedfaeriemudorg-
For master, I'm fine with >= 1.4.1
going forward
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.
If we want to backport, I would say ">= 1.3", "!= 1.4.0" is probably best as 1.3.0 drops ruby 2.4 and below. See: https://github.com/ged/ruby-pg/blob/252512608a814de16bbad55911f9bbcef0e73cb9/History.rdoc#v130-2022-01-20-michael-granger-gedfaeriemudorg-
For master, I'm fine with >= 1.4.1 going forward
Yeah I'm good with that - we should definitely backport something so we don't accidentally unlock to a "bad" version.
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.
Cool, I'll update this PR to do ">= 1.3", "!= 1.4.0"
first for backport. I'll then do ">= 1.4.1"
on master as a followup.
Ok, added backport request for this PR for najdorf. I've opened #21956 to be reviewed merged after this one is done. |
Checked commits jrafanie/manageiq@7682c35~...18fa876 with ruby 2.6.9, rubocop 1.19.1, haml-lint 0.35.0, and yamllint |
@jrafanie A conflict occurred during the backport of this pull request to If this pull request is based on another pull request that has not been marked for backport, add the appropriate labels to the other pull request. Otherwise, please create a new pull request direct to the Conflict details: diff --cc Gemfile
index 6a59153ce3,1348027710..0000000000
--- a/Gemfile
+++ b/Gemfile
@@@ -60,7 -59,7 +60,11 @@@ gem "net-ldap"
gem "net-ping", "~>1.7.4", :require => false
gem "openscap", "~>0.4.8", :require => false
gem "optimist", "~>3.0", :require => false
++<<<<<<< HEAD
+gem "pg", :require => false
++=======
+ gem "pg", ">=1.3", "!= 1.4.0", :require => false # 1.4.0 caused https://github.com/ged/ruby-pg/issues/466
++>>>>>>> f0fcf7e4da (Merge pull request #21953 from jrafanie/unlock_pg_gem_since_1_4_1_released)
gem "pg-dsn_parser", "~>0.1.0", :require => false
gem "query_relation", "~>0.1.0", :require => false
gem "rack", ">=2.2.3.1", :require => false |
I'll take care of this one manually |
…eased Unlock the pg gem since 1.4.1 was released (cherry picked from commit f0fcf7e)
|
1.4.0 led to ged/ruby-pg#466
and was fixed in ged/ruby-pg#467
Since 1.4.1 is now released and fixes the issue, we can safely unlock pg except
for version 1.4.0.