I have a project which cargo patch works perfectly fine on one machine.
While recently I got a new dev machine and am trying to setup dev enviroment. Then I got issue to run Cargo patch, it returns
Error: Unable to parse patch file
It also seems that Cargo patch does not download crate to target folder
The cause was because of line endings. The solution is to to change git setting.
git config --global core.autocrlf false
and checkout the repository again which fixed my issue.
cargo-patch could improve this case in fact.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.