Commit Graph
2 Commits
Author SHA1 Message Date
Jakob Botsch Nielsen 5e4bd4051b Fix retry when downloading clang tools (#59806)
Invoke-WebRequest throws an exception when the download fails, so we
should use try-catch instead of status code to check failure. We can use
the generic Retry function from tools.ps1 to do this.

In addition pass -PassThru to avoid leaving a corrupted download file in
case the download fails. This will buffer the download and write it once
at the end.

Fix #57196
2021-09-30 19:14:24 +02:00
Jeremy Koritzinsky a526e77b6d Move clang-format download into dotnet/runtime and add docs for setting up auto-formatting in the repository (#59374) 2021-09-23 14:34:00 -07:00