Repository navigation
Keep LF endings on the adb shim in Windows checkouts - #38
Merged
Merged
Conversation
Owner
|
Thanks, merged. Good catch: the shim has no extension, so the existing rules never covered it. Generated by Claude Code |
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.
scripts/android/shim/adbhas no file extension, so the*.shand*.pyrules in.gitattributesdon't cover it. In a Windows clone withcore.autocrlf=true, it is checked out with CRLF line endings. Its shebang then readsbash\r, and every call through the shim exits with 127.Result: the four
test_ecr_trace.EndToEndtests fail when the suite runs under WSL from a Windows checkout.This PR adds one rule,
scripts/android/shim/* text eol=lf, so the shim always keeps LF endings.How I tested: on Windows 11, checking the shim out again gives
w/lf. Under WSL Ubuntu (Python 3.14),python3 -m unittest discover -s tests -qgives 280 tests,OK (skipped=5). Before the fix, the same run had 4 errors, all exit status 127.🤖 Generated with Claude Code