今天我尝试为我的Rails 6.1.0应用程序构建一个带有Active Storage的Docker镜像,但是出现了以下错误:
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.
现在我正在尝试安装mimemagic
gem install mimemagic -v 0.3.5
我得到了以下错误:
ERROR: Could not find a valid gem 'mimemagic' (= 0.3.5) in any repository
ERROR: Possible alternatives: mimemagic
看起来宝石消失了。有人能解释一下吗?
这个问题的解决方案是什么?
Gemfile.lock
文件并重新运行了bundle install
,这对我来说非常有效。 - Constantin De La Roche