Skip to content

Commit 727d2b4

Browse files
committed
Lock sqlite3 gem to 1.4 to run Rails CI using rubylang/ruby:master-nightly-focal
Managed to reproduce https://buildkite.com/rails/rails/builds/90045#01839e89-85d4-4ef5-a443-6b2993f08f36 - Steps to reproduce Install Docker ``` git clone https://github.com/rails/rails cd rails git clone https://github.com/rails/buildkite-config .buildkite/ RUBY_IMAGE=rubylang/ruby:master-nightly-focal docker-compose -f .buildkite/docker-compose.yml build base ``` - Actual behavior without this change It gets `Gem::Ext::BuildError: ERROR: Failed to build gem native extension.` The entire error message can be seen via https://buildkite.com/rails/rails/builds/90045#01839e89-85d4-4ef5-a443-6b2993f08f36 - Why sqlite gem version is locked to 1.4? The last successful build installed `sqlite3 1.5.1`. however now it cannot install 1.5.1, 1.5.0 anymore. https://buildkite.com/rails/rails/builds/90006#01839032-3ccd-4aca-ad58-2c08beb4351f/142-862 I still have not found the actual reason why. I've just found a related issue https://bugs.ruby-lang.org/issues/19189
1 parent caaac48 commit 727d2b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ platforms :ruby, :windows do
140140
gem "racc", ">=1.4.6", require: false
141141

142142
# Active Record.
143-
gem "sqlite3", "~> 1.4"
143+
gem "sqlite3", "~> 1.4", "< 1.5"
144144

145145
group :db do
146146
gem "pg", "~> 1.3"

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ DEPENDENCIES
628628
sneakers
629629
sprockets-export
630630
sprockets-rails (>= 2.0.0)
631-
sqlite3 (~> 1.4)
631+
sqlite3 (~> 1.4, < 1.5)
632632
stackprof
633633
stimulus-rails
634634
sucker_punch

0 commit comments

Comments
 (0)