circuit_switch
circuit_switch copied to clipboard
Lock sqlite3 version to fix CI
Since the release of sqlite3 2.x, CI breaks with the following error.
/opt/hostedtoolcache/Ruby/3.3.3/x64/lib/ruby/3.3.0/bundler/rubygems_integration.rb:237:in `block (2 levels) in replace_gem': Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.2-x86_64-linux-gnu. Make sure all dependencies are added to Gemfile. (LoadError)
from /home/runner/work/circuit_switch/circuit_switch/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/connection_adapters/sqlite3_adapter.rb:14:in `<top (required)>'
This error is caused by a mismatch between circuit_switch and Rails version. To avoid this error, the version of sqlite3 must be the same as the Rails definition.
There are some troubles in CI. Let me mark this PR as draft. I'll check them later.
@tricknotes Thank you for trying to fix CI! Rails supports sqlite3 2.x at https://github.com/rails/rails/pull/51958. Also, we made the deprecated Rubies CI run only on older macOS.
Thanks for your notice. Currently, this PR is unnecessary.