Running patch
on windows-2022 started failing with "Can't rename file"
#8632
Labels
Area: Common Tools
awaiting-deployment
Code complete; awaiting deployment and/or deployment in progress
bug report
OS: Windows
Description
This started happening withing a week or a couple of weeks, maybe. Even repositories that used to patch source without problems are now failing with the same error.
It appears that the new version of
patch
onwindows-2022
has a bug in how it handles temporary files when applying patches.I verified that the source is in place and that directories where patches are applied have write permissions.
Platforms affected
Runner images affected
Image version and build link
See this run:
https://github.com/{removed}/{removed}/actions/runs/{removed}/job/{removed}
Expand Patch source to see errors.
Is it regression?
yes
Expected behavior
A patch used to apply properly in the source tree just a couple of weeks ago.
Actual behavior
Patches now are failing with messages like this:
Repro steps
Have a patch and run it in
cmd
shell like this on awindows-2022
image:The text was updated successfully, but these errors were encountered: