-
Notifications
You must be signed in to change notification settings - Fork 25
Add libmagic1 to Dockerfile dependencies #310
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
base: main
Are you sure you want to change the base?
Conversation
This allows us to use language bindings such as python-magic inside pre-commit checks.
|
Discovered via fsfe/reuse-tool#1244, it falls back to less performant and worse working detection using other libraries. |
|
You could also consider installing |
Lets avoid it for now. We run pre-commit directly as well and the pre-commit.ci is needed to apply formatting, what reuse does not do. See fsfe/reuse-tool#1244 and pre-commit-ci/runner-image#310
|
could you comment on the size this adds to the image? would make it easier to understand whether this is a good idea or not I'm surprised python-magic doesn't ship a wheel with it bundled (as is typical for manylinux and friends) |
|
The library itself is 200 kB, but it pulls the detection data which is 7 MB. That might me also the reason why it's not shipped in the wheel... |
|
There is an unmerged PR against python-magic which does just that: ahupp/python-magic#294 |
check out the compressed sizes (including the mime database and the libmagic binary) here. uncompressed, |
|
so should I merge this or should the other thing use |
|
It looks like my PR wont get merged any time soon, which is why |
This allows us to use language bindings such as python-magic inside pre-commit checks.