概要
本日、EC2で自動デプロイの設定を行い、実行しようとしたらこんなエラーが!!
bundle stdout: Nothing written
bundle stderr: Your bundle is locked to mimemagic (0.3.5), but that version could not be found
in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.5) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
in order to install.
起きていたこと
Railsの一部であるactivestorageが依存しているmimemagic gemが、ライセンス関連の問題でrubygems.orgから取り下げられました。これにより、mimemagic <= 0.3.5に依存しているRailsアプリがbundle installに失敗するようになっていた。
解決策
-gem 'rails', '~> 6.0.3.5'
+gem 'rails', '~> 6.0.3.6'
参考