Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Clear Azure source directory on builds
- Occasionally files intended to live in containers get written on Windows with the wrong line endings. Linux containers need LF line endings for executable scripts and config files (for instance), but the default checkout on Windows is CRLF, unless explicitly configured to be different. Unfortunately a subsequent pull of the code will not reset local line endings on Windows, even when .gitattributes is set properly. This typically results in RDPing into an Azure DevOps builder and manually trashing the source code, so that when the code is next checked out, the appropriate LF line endings will be set. Instead of doing that, have the `s` (source) subdirectory purged on each build. https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#job
- Loading branch information