本文介绍了您的包被锁定为 mimemagic (0.3.5),但在您的 Gemfile 中列出的任何来源中都找不到该版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我尝试使用活动存储为我的 rails 6.1.0 构建一个 docker,但出现以下错误:

Today I tried to build a docker for my rails 6.1.0 with active storage, I got the following error:

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

And now I try to install the 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

好像宝石不见了.有人能解释一下吗?

It seems like the gem is gone. Can someone explain this?

有什么办法可以解决这个问题?

what can be the solution to this issue?

推荐答案

几天前,mimemagic 版本被删除了.更多信息请访问:

Few days ago, the mimemagic versions were yanked. More info can be found at:

您可以按如下方式修改您的 Gemfile:

You can modify your Gemfile as below:

gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f'

这篇关于您的包被锁定为 mimemagic (0.3.5),但在您的 Gemfile 中列出的任何来源中都找不到该版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 03:36