Closed
Description
Environment
- pip version: master
- Python version: 3.8
- OS: Windows 10
Description
Running tox -e vendoring
fails on Windows.
The reason for the failure seems to be newline normalization -- see https://github.com/pypa/pip/commit/5563141d58bc17d5fab3bf4ca1649e136e25696c/checks/396942169/logs (from #7611). The patching process failed and vendoring
(the tool) did not error out immediately. The git diff --exit-code
catches the problem though. :)
Expected behavior
tox -e vendoring
should work on all platforms.
How to Reproduce
- Checkout pip's current master on Windows.
- Run
tox -e vendoring
- An error occurs.
Output
From the logs linked above, the relevant lines are:
2020-01-18T18:29:27.6652039Z Running git apply --verbose 'tools\automation\vendoring\patches\requests.patch'
2020-01-18T18:29:27.6652131Z error: corrupt patch at line 7