【发布时间】:2019-11-21 09:00:43
【问题描述】:
我有一个问题,我的 CI 构建规范失败,但它们在本地通过。我在两者上都使用相同版本的 ruby,并且在两者上都安装了相同的 sqlite3 gem。
我能找到的唯一区别是CI服务器似乎使用的是sqlite3版本:
3.7.17
我的mac哪里安装了sqlite3版本:3.25.1
失败的规范因 SQL 语法错误而失败:
ActiveRecord::StatementInvalid: SQLite3::SQLException: near "WITH": syntax error: ;WITH included_items
我想在本地测试一下 - 看看是不是因为 Sqlite 版本。我想以某种方式将本地 Mac 版本的 sqlite3 降级到与 CI 服务器相同的版本。
我尝试使用 brew,但似乎找不到任何其他版本的公式。
$ brew install sqlite3@3.7.17
Error: No available formula with the name "sqlite3@3.7.17"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
任何想法如何做到这一点?
【问题讨论】:
标签: ruby-on-rails sqlite homebrew