今天我尝试为我的带活动存储的rails 6.1.0构建一个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
看起来宝石已经不见了。有人能解释一下吗?
这个问题的解决方案是什么?
发布于 2021-04-02 15:02:10
几天前,模仿版本被取消了。有关更多信息,请访问:
您可以修改Gemfile,如下所示:
gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f'
发布于 2021-04-02 13:21:25
尝试删除Gemfile.lock并再次捆绑。确保你可以做到这一点,因为你所有的gem都会被更新。在我的Rails 6.1实例中,不再使用mimemagic。好了。
如果这是不可能的,你需要更新mimemagic,因为他们似乎删除了0.3.7以下的所有版本:bundle update mimemagic
更新:我不确定它是否清晰,但rails不再使用mimemagic。
发布于 2021-04-02 12:43:09
如果您正在使用macOS
brew install shared-mime-info
bundle update mimemagic
https://stackoverflow.com/questions/66919504
复制