Repository navigation
aperture: ignore a title line above the same license text (Fixes #5525) - #5590
Merged
Merged
Conversation
…a dir vendored (Fixes #5525) The license-family compare kept a fixed 40-char prefix, so gson/LICENSE ("Google Gson" + the root's Apache-2.0) differed from the root and gson/ was dropped as vendored. Families now keep a 240-char window and match when the head of one occurs in the other (both directions; empty matches only empty). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 09:09
squid-protocol
enabled auto-merge (squash)
October 19, 2026 09:16
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5525 (regression from #5512 / Part of #5464).
Change
_license_family()kept a fixed 40-char prefix, so a module LICENSE with a title line above the root's text (gson'sgson/LICENSE,Google Gson+ Apache-2.0) looked foreign andgson/was marked vendored. Families now keep a 240-char window; new_same_license()matches when the 40-char head of one occurs in the other (symmetric, so a titled root works too; empty matches only empty). Used by_has_foreign_licenseand_has_root_license.Class table
libs/of titled modules)_has_root_license)licenses/dir, empty LICENSEGates
test_vendored_dirs_4545.py: 65 passed;pr_gates --fast6/6;--ratchets8/8call_graph_resolution.py java --ci: OK, back to 99.8% precision / 64.9% recall / 66.5% resolution recallcrucible_check.py(both legs): PASS, no golden diffLessons for agents
cat > filebefore a heredoc-less command hangs the shell; write files with the Edit/Write tools.🤖 Generated with Claude Code