Skip to content

Commit bd77a4e

Browse files
committed
Lock sqlite3 gem to 1.4 to run bug report templates
This commit locks sqlite3 gem version to 1.4 to run bug report templates using rubylang/ruby:master-nightly-focal This issue does not reproduce Ruby 3.2.0dev installed locally. It reproduces at Rails CI environment that runs Ruby using Docker. https://buildkite.com/rails/rails/builds/91635#01850c57-922e-4bac-a083-732715667640 ``` Installing sqlite3 1.5.4 with native extensions /usr/local/lib/ruby/3.2.0+3/bundler/installer/parallel_installer.rb:220:in `handle_error': Gem::Ext::BuildError: ERROR: Failed to build gem native extension. (Bundler::InstallError) current directory: /usr/local/lib/ruby/gems/3.2.0+3/gems/sqlite3-1.5.4/ext/sqlite3 /usr/local/bin/ruby -I /usr/local/lib/ruby/3.2.0+3 extconf.rb Building sqlite3-ruby using packaged sqlite3. Extracting sqlite-autoconf-3400000.tar.gz into tmp/x86_64-linux-gnu/ports/sqlite3/3.40.0... OK Running 'configure' for sqlite3 3.40.0... OK Running 'compile' for sqlite3 3.40.0... OK Running 'install' for sqlite3 3.40.0... OK Activating sqlite3 3.40.0 (from /usr/local/lib/ruby/gems/3.2.0+3/gems/sqlite3-1.5.4/ports/x86_64-linux-gnu/sqlite3/3.40.0)... Could not configure the build properly (pkg_config). Please install either the `pkg-config` utility or the `pkg-config` rubygem. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. ``` Related to rails#46711
1 parent 0e9b729 commit bd77a4e

8 files changed

+8
-8
lines changed

guides/bug_report_templates/action_mailbox_gem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Activate the gem you are reporting the issue against.
1111
gem "rails", "~> 7.0.0"
12-
gem "sqlite3"
12+
gem "sqlite3", "< 1.5"
1313
end
1414

1515
require "active_record/railtie"

guides/bug_report_templates/action_mailbox_main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
99

1010
gem "rails", github: "rails/rails", branch: "main"
11-
gem "sqlite3"
11+
gem "sqlite3", "< 1.5"
1212
end
1313

1414
require "active_record/railtie"

guides/bug_report_templates/active_record_gem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Activate the gem you are reporting the issue against.
1111
gem "activerecord", "~> 7.0.0"
12-
gem "sqlite3"
12+
gem "sqlite3", "< 1.5"
1313
end
1414

1515
require "active_record"

guides/bug_report_templates/active_record_main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
99

1010
gem "rails", github: "rails/rails", branch: "main"
11-
gem "sqlite3"
11+
gem "sqlite3", "< 1.5"
1212
end
1313

1414
require "active_record"

guides/bug_report_templates/active_record_migrations_gem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Activate the gem you are reporting the issue against.
1111
gem "activerecord", "~> 7.0.0"
12-
gem "sqlite3"
12+
gem "sqlite3", "< 1.5"
1313
end
1414

1515
require "active_record"

guides/bug_report_templates/active_record_migrations_main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
99

1010
gem "rails", github: "rails/rails", branch: "main"
11-
gem "sqlite3"
11+
gem "sqlite3", "< 1.5"
1212
end
1313

1414
require "active_record"

guides/bug_report_templates/active_storage_gem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Activate the gem you are reporting the issue against.
1111
gem "rails", "~> 7.0.0"
12-
gem "sqlite3"
12+
gem "sqlite3", "< 1.5"
1313
end
1414

1515
require "active_record/railtie"

guides/bug_report_templates/active_storage_main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
99

1010
gem "rails", github: "rails/rails", branch: "main"
11-
gem "sqlite3"
11+
gem "sqlite3", "< 1.5"
1212
end
1313

1414
require "active_record/railtie"

0 commit comments

Comments
 (0)