Skip to content

Vendoring process fails on Windows #7617

Closed
@pradyunsg

Description

@pradyunsg

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

  1. Checkout pip's current master on Windows.
  2. Run tox -e vendoring
  3. 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

Metadata

Metadata

Assignees

Labels

auto-lockedOutdated issues that have been locked by automationproject: vendored dependencyRelated to a vendored dependencytype: maintenanceRelated to Development and Maintenance Processes

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions