Closed pombredanne closed 3 years ago
@tardyp I merged 17 in this branch which also carries over in a single place the code originally contributed by @priv-kweihmann for the typecode_libmagic_system_provided
plugins https://github.com/nexB/scancode-plugins/pull/9
Getting both of your reviews would be great before I merge
@tardyp you wrote:
I am having hard time reviewing this 272 files PR. Franckly I am not a huge fan of vendoring for opensource projects, although I do understand the need to limit dependency variablility for support reason
I agree yet the Pygments vendoring here is a must here as we have dependencies on specific versions and vendoring is the sane approach to avoid conflicts (that popped up often in the past) when this fairly common Pygments library is installed otherwise.
@tardyp note also that we should be able to support Apple ARM chips as soon as I can find some CI supporting it.
This looks decent now. Merging and releasing!
We now load the libmagic native library and its database from paths found in:
Based on original code contributed by @priv-kweihmann to scancode-plugins in https://github.com/nexB/scancode-plugins/pull/9 and moved here and adapted for use in the core code rather than in a plugin.
This also includes the merge of @tardyp #17 to search for common locations as a failover
Signed-off-by: Philippe Ombredanne pombredanne@nexb.com
Signed-off-by: Philippe Ombredanne pombredanne@nexb.com