circuit_switch icon indicating copy to clipboard operation
circuit_switch copied to clipboard

Lock sqlite3 version to fix CI

Open tricknotes opened this issue 1 year ago • 1 comments

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.

tricknotes avatar Jun 23 '24 09:06 tricknotes

There are some troubles in CI. Let me mark this PR as draft. I'll check them later.

tricknotes avatar Jun 23 '24 09:06 tricknotes

@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.

makicamel avatar Sep 15 '24 04:09 makicamel

Thanks for your notice. Currently, this PR is unnecessary.

tricknotes avatar Sep 16 '24 14:09 tricknotes