Deployment not working (mimemagic (0.3.0) - version could not be found
Opened this issue · 5 comments
Hi,
During deployment, Bundler couldn't find a specific version of mime magic
https://github.com/randym/axlsx.git (at 776037c@776037c) is not yet checked out.
Run `bundle install` first.
Fetching gem metadata from https://rubygems.org/.....
....
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Your bundle is locked to mimemagic (0.3.0), 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.0) has removed it. You'll need to update
your bundle to a different version of mimemagic (0.3.0) that hasn't been removed
in order to install.
Is there a way to fix this?
mimemagic's old versions (<= 0.3.6
) were yanked/deleted due to copyright issues:
atm, best option it to update mimemagic
to 0.3.7+
and follow instructions at https://github.com/mimemagicrb/mimemagic#dependencies
@leandronsp that might not be the behavior you or others want. Mimemagic changed their licensing, so updating mimemagic would cause whatever project you are working on to also change its licensing.
Rails approach was to remove mimemagic completely: https://github.com/rails/rails/pull/41751/files
Hopefully @randym could do similar here or someone create a patch. My team might do so out of necessity next week.
Indeed @motdotla. Despite of mimemagic 0.3.7+ being MIT licensed (I think the only version GPL was 0.3.6 but already yanked), it's still not ideal using it because it requires manual installation of shared-mime-info.
As for this gem, I just noticed this is not the maintained version, as mimemagic removal was already done in the community version: caxlsx/caxlsx#95
Thanks!
Caxlsx 3.1.0 has been released. It replaces mimemagic with marcel ~> 1.0
(like the latest versions of Rails).
It looks like comparably easy way to move forward is switch to caxlsx
. Thanks all for the input!