Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment not working (mimemagic (0.3.0) - version could not be found #659

Open
AnithaPal opened this issue Mar 26, 2021 · 5 comments
Open
Labels
Done in caxlsx This has already been solved in the caxlsx fork.

Comments

@AnithaPal
Copy link

AnithaPal commented Mar 26, 2021

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?

@leandronsp
Copy link

mimemagic's old versions (<= 0.3.6) were yanked/deleted due to copyright issues:

mimemagicrb/mimemagic#98

atm, best option it to update mimemagic to 0.3.7+ and follow instructions at https://github.com/mimemagicrb/mimemagic#dependencies

@motdotla
Copy link

@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.

@leandronsp
Copy link

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!

@noniq
Copy link
Collaborator

noniq commented Mar 29, 2021

Caxlsx 3.1.0 has been released. It replaces mimemagic with marcel ~> 1.0 (like the latest versions of Rails).

https://github.com/caxlsx/caxlsx/blob/master/CHANGELOG.md

@noniq noniq added the Done in caxlsx This has already been solved in the caxlsx fork. label Mar 29, 2021
@AnithaPal
Copy link
Author

It looks like comparably easy way to move forward is switch to caxlsx. Thanks all for the input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Done in caxlsx This has already been solved in the caxlsx fork.
Projects
None yet
Development

No branches or pull requests

4 participants