Skip to content

Pin binaryornot to v0.4.4 to fix errors - #5357

Merged
AyanSinhaMahapatra merged 3 commits into
developfrom
fix-license-test-errors
Oct 12, 2026
Merged

AyanSinhaMahapatra merged 3 commits into
developfrom
fix-license-test-errors

Conversation

@AyanSinhaMahapatra

@AyanSinhaMahapatra AyanSinhaMahapatra commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Also installs commoncode first and then scancode so that the requirements are honoured.
Reference: #5343

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

codewithfourtix and others added 3 commits October 5, 2026 13:01
binaryornot 0.6.0 checks only the first 512 bytes of a file, and its UTF-8
check fails when that cut lands inside a multi-byte character, so UTF-8 text
with CJK characters is classified as binary. Such files are then scanned as
binary and only their ASCII strings are matched, which broke 4 data-driven
license tests on develop since the bump (nysl-0.9982, nysl-0.9982_jp,
MulanPSL-1.0.t1, fossology BSD manual-bsdstyle).

This is an open upstream bug (binaryornot/binaryornot#658, #666, unmerged
fix in #667). 0.4.4 is the version used before the bump; chardet, which it
needs, is already pinned.

Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
Also installs commoncode first and then scancode so that the requirements
are honoured.

Reference: #5343
Signed-off-by: Ayan Sinha Mahapatra <asmahapatra@aboutcode.org>
@AyanSinhaMahapatra
AyanSinhaMahapatra merged commit b60ecd4 into develop Oct 12, 2026
9 of 41 checks passed
@AyanSinhaMahapatra
AyanSinhaMahapatra deleted the fix-license-test-errors branch October 12, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants