-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vendoring process fails on Windows #7617
Comments
I can take a look at this later this week, if no-one gets to it before me. @pradyunsg I see you self-assigned it - I'm fine if you prefer to deal with it yourself. It may be as simple as marking the patch files as "binary" in |
There's 2 things to do here:
I'm not 100% sure what the problem with the line endings is - if it's the line endings changing, or it might be a difference of line ending between the two files. I'm pretty sure that you'd be much better at figuring this out than me. :) |
This plus #7600 means we’ll need to figure out a universal setting for all these things. There are two settings affecting this: The “easiest” (in quotes) solution would be to punt and always use UNIX line endings ( |
I'd prefer to go with native line endings, as that's less likely to have odd side-effects (even though most editors work fine with Treating patch files as special makes more sense to me, because, well, they are - the patch utilities are what don't handle mixed line endings cleanly. Actually, it looks like the problem is far simpler than all this - when we moved the patches from |
It looks like this can be closed. Confirmed by rebasing #7611. |
Yup! |
Environment
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. Thegit diff --exit-code
catches the problem though. :)Expected behavior
tox -e vendoring
should work on all platforms.How to Reproduce
tox -e vendoring
Output
From the logs linked above, the relevant lines are:
The text was updated successfully, but these errors were encountered: