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
Yanked mimemagic 0.3.5 leaves us with no buildable version of rails 6.0 #23
Comments
Old Rails versions are affected too:
|
|
Tried upgrading marcel to use
|
thanks @907th , couldn't see it on the releases page. but this exits as a separate branch |
@light94 It is available on rubygems.org |
Gem was yanked due to license change from MIT to GPL-2.0 |
It's a 0.y.z version and that means according to SemVer the API is not considered stable: https://semver.org/#spec-item-4 |
just leaving a note to track this, as this affects the PR I have open for the Rails project. |
Just offering this as a potential alternative : rails/rails#41751 |
Note that mimemagic 0.3.6 is GPL licensed though. So while it might build, it might not be legal to use it in a non-GPL-licenesed project. The yankings are actually around this license error/dispute. |
I'm working with the maintainer to get jellybob/mimemagic#3 (further discussion at jellybob/mimemagic#1) merged and shipped as 0.3.7, which resolves the GPL violations in MimeMagic at the expense of a slightly more involved install process. |
For those of you looking for an alternative and are okay with compiling a C extension, I took the fine work in https://github.com/kwilczynski/ruby-magic and bundled
I've commented in the upstream gem about making this the behavior of UPDATE: |
I don't think it solves the issue, marcel will not accept 0.3.6 as a dependancy, error from a Rails project: |
0.3.6 has been also been yanked as it was also in breach of the GPL. 0.3.7 is legitimately MIT licensed and should work for you. |
#11 26.18 Could not find MIME type database in the following locations: |
For those who don't need |
@rjadrian1 please see the MimeMagic readme at https://github.com/mimemagicrb/mimemagic/blob/master/README.md for details on how to make sure you have a copy of the file available. |
Moving to mimemagic 0.3.7 does not resolve the dependency issues
This error makes sense per https://rubygems.org/gems/marcel/versions/0.3.3 |
Waiting for a fix here, marcel is needed for many Rails 5.2 projects too. Monkeypatched a solution extracting mimemagic code from RVM meanwhile. |
My issue was made irrelevant by 0.3.8 |
please try to add "shared-mime-info" if you using alpine based docker image. " apk add shared-mime-info" |
mimemagic 0.3.8 needs shared-mime-info package |
Everything I've seen about this seems to be linux-specific; on macOS macports and homebrew both have |
Sorry folks, its |
*** UPDATE *** |
Re @ShadSterling's comment about OSX, if you're running an M1, compiling against x86 following a |
How can I resolve that error on windows? |
@ddhung95 create a file and set the |
Marcel 1.0.0 has been released without the mimemagic dependency. Active Storage patches upgrading to the new version have also been released. |
mimemagic 0.3.5 has been yanked from rubygems, marcel needs to be upgraded to use 0.4.0 and released ASAP.
Rails applications depending on activestorage -> marcel are unable to be built currently..
The text was updated successfully, but these errors were encountered: