hetare
@hetare

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

【Circle CI】Your bundle is locked to mimemagic (0.3.5),

解決したいこと

・こちらの記事をもとに .circleci/config.yml config/database.yml.ci の2つのファイルを作成した。
https://qiita.com/YK0214/items/bbed63ea7ca5367dae2f

・Circle CIでビルドし、下記のエラーが出ている状態。(今回Circle CIを使うのははじめて)

解決方法を教えて下さい。

発生している問題・エラー

Circle CI

#!/bin/bash -eo pipefail
bundle install --path vendor/bundle
Warning: the running version of Bundler (1.17.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
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.

Exited with code exit status 7
CircleCI received exit code 7

または、問題・エラーが起きている画像をここにドラッグアンドドロップ
スクリーンショット 2021-03-26 12.55.03.png

該当するソースコード

自分で試したこと

参考記事を探しているのですが今の所これだという記事を見つけられていません。

0

1Answer

mimemagic は 0.3.9 を使うと良いと思います.

$ bundle update mimemagic

こちらをやって,Gemfile.lock の該当部分が変更になっていることを確認してから
再度実施するのはどうでしょうか?

0Like

Your answer might help someone💌